-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
50 lines (50 loc) · 1.66 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
41
42
43
44
45
46
47
48
49
50
module.exports = {
root: true,
settings: {
'import/resolver': {
typescript: {}
},
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: './',
},
plugins: [
'@typescript-eslint',
'import',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'airbnb-typescript/base',
],
rules: {
'@typescript-eslint/no-inferrable-types': ['off'],
'@typescript-eslint/unbound-method': ['warn'],
'@typescript-eslint/require-await': ['warn'],
'@typescript-eslint/naming-convention': ['off'], // @TODO: Configre this rule later
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
'@typescript-eslint/no-unsafe-member-access': ['off'], // @WHY: becouse it's rule is broken
'@typescript-eslint/no-unsafe-assignment': ['off'], // @WHY: becouse it's rule is broken
'@typescript-eslint/no-unsafe-call': ['off'], // @WHY: becouse it's rule is broken
'@typescript-eslint/no-unsafe-return': ['off'], // @WHY: becouse it's rule is broken
'import/prefer-default-export': ['off'],
'no-underscore-dangle': ['off'],
'no-restricted-syntax': ['off'],
'no-void': ['warn'],
'no-continue': ['off'],
'class-methods-use-this': ['warn'],
'consistent-return': ['off'],
'no-async-promise-executor': ['off'],
'no-await-in-loop': ['off'],
'max-len': ['error', 120, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
}
};