-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.92 KB
/
.eslintrc.json
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
{
"env": {
"browser": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-this-alias": ["off"],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/ban-ts-comment": ["error"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
"react/no-unescaped-entities": ["off"],
"import/no-cycle": ["off"], // for performance
"camelcase": ["off"],
"no-shadow": ["off"],
"no-async-promise-executor": ["off"],
"no-unused-expressions": ["off"],
"prefer-template": ["off"],
"no-else-return": ["off"],
"no-console": ["error"],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-redeclare": ["off"],
"no-useless-escape": ["off"],
"class-methods-use-this": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true, "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-namespace": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"no-constant-condition": ["error"],
"no-prototype-builtins": ["off"],
"no-debugger": ["error"],
"no-self-assign": ["error"],
"no-self-compare": ["error"],
"no-template-curly-in-string": ["error"],
"require-atomic-updates": ["error"],
"valid-typeof": ["error"],
"complexity": ["error", 10],
"dot-notation": ["error"],
"eqeqeq": ["error"],
"max-depth": ["error", 4],
"no-bitwise": ["error"],
"no-extra-boolean-cast": ["error"],
"no-implicit-coercion": ["error"],
"no-lone-blocks": ["error"],
"no-lonely-if": ["error"],
"no-param-reassign": ["error"],
"no-return-await": ["warn"],
"require-await": ["warn"],
"no-unneeded-ternary": ["error"],
"no-irregular-whitespace": ["error"]
}
}