-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.05 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
rules: {
'@typescript-eslint/ban-types': [
'error',
{
types: { '{}': false },
extendDefaults: true,
},
],
'@typescript-eslint/lines-between-class-members': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/naming-convention': 0,
'class-methods-use-this': 0,
'import/extensions': 0,
'import/prefer-default-export': 0,
'lines-between-class-members': 0,
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'no-restricted-syntax': 0,
'max-classes-per-file': 0,
'object-curly-newline': 0,
},
ignorePatterns: ['dist', '**/*.js'],
};