-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
40 lines (33 loc) · 1.21 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
module.exports = {
"parserOptions": {
"project": './tsconfig.json',
"sourceType": "module"
},
"extends": [
"@vkontakte/eslint-config/typescript"
],
"settings": {
"react": {
"version": "16.0",
}
},
"rules": {
"spaced-comment": ["error", "always", { "markers": ["/"] }],
// Disabled because: no configurable options for .length > 0, arr[0] and similar constructions.
"no-magic-numbers": "off",
"@typescript-eslint/no-magic-numbers": "off",
// Disabled because: errors on "displayMode || '5min'" expression with nullable variable.
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/require-array-sort-compare": "off",
"@typescript-eslint/no-non-null-assertion": "off",
// Disabled: covered with stricter tsc settings
"@typescript-eslint/typedef": "off",
// Disabled: extra parens make code more expressive
"@typescript-eslint/no-extra-parens": "off",
// Disabled: weird false positives in recursive classes usage
"@typescript-eslint/no-use-before-define": "off",
// Disabled: weird requirement
"@typescript-eslint/no-this-alias": "off"
}
};