-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.8 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
51
52
53
54
55
56
57
module.exports = {
parser: '@typescript-eslint/parser',
root: true,
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json']
},
plugins: ['@typescript-eslint'],
extends: [
'o2team',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
rules: {
'new-cap': 0,
'class-methods-use-this': 0,
'no-undef': 1,
'no-undefined': 0,
'no-await-in-loop': 0,
'no-mixed-operators': 0,
'no-use-before-define': 0,
'brace-style': 0,
'no-unused-vars': 0,
'arrow-body-style': 0,
'no-nested-ternary': 0,
'space-before-function-paren': 0,
'@typescript-eslint/no-for-in-array': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-unused-vars': 1,
'@typescript-eslint/triple-slash-reference': 0,
'@typescript-eslint/no-misused-promises': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-empty-function': 1,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-unsafe-argument': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/member-delimiter-style': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/ban-ts-comment': 1,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/ban-types': [
'error',
{
types: {
Function: false
}
}
]
}
}