-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (50 loc) · 1.45 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 = {
parser: '@typescript-eslint/parser',
plugins: [
'typescript',
'@typescript-eslint',
],
extends: ['airbnb-base'],
rules: {
// allow debugger during development
'linebreak-style': 0,
'indent': [2, 4, {
'SwitchCase': 1
}],
'max-len': [2, {
'code': 160,
'ignoreUrls': true,
'ignoreComments': true
}],
'radix': ['error', 'as-needed'],
'object-shorthand': ['error', 'methods'],
'no-unused-expressions': ['error', {
'allowShortCircuit': true,
}],
'class-methods-use-this': [0, {
'exceptMethods': ['writeObject', 'readObject', 'Serialize', 'Derialize'],
}],
'no-restricted-globals': [0, 'isNaN'],
'no-restricted-syntax': 0,
'no-bitwise': 0,
'no-mixed-operators': 0,
"import/extensions": 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/no-dynamic-require': 0,
'object-curly-newline': 0,
'consistent-return': 0,
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': 2,
'no-param-reassign': 0,
'no-return-await': 0,
'no-await-in-loop': 0,
'no-loop-func': 0,
'no-continue': 0,
'no-plusplus': 0,
'no-debugger': 0,
'no-console': 0,
'no-shadow': 0,
'camelcase': 0,
},
}