-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
67 lines (67 loc) · 2.21 KB
/
.eslintrc.json
File metadata and controls
67 lines (67 loc) · 2.21 KB
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
58
59
60
61
62
63
64
65
66
67
{
"root": true,
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended-type-checked"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": [ "./tsconfig.json" ]
},
"plugins": [ "@typescript-eslint" ],
"rules": {
"consistent-return": "warn",
"eqeqeq": "warn",
"no-alert": "warn",
"no-empty": [ "warn", { "allowEmptyCatch": true } ],
"no-eval": "error",
"no-console": "off",
"@typescript-eslint/comma-dangle": [
"warn",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "always-multiline",
"functions": "always-multiline",
"enums": "always-multiline",
"generics": "always-multiline",
"tuples": "always-multiline"
}
],
"@typescript-eslint/member-delimiter-style": [ "warn", { "singleline": { "requireLast": true } } ],
"@typescript-eslint/no-confusing-void-expression": [ "warn", { "ignoreArrowShorthand": true } ],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-misused-promises": [ "error", { "checksVoidReturn": false } ],
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": [ "warn", { "argsIgnorePattern": "^_" } ],
"@typescript-eslint/quotes": "warn",
"@typescript-eslint/return-await": "warn",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/switch-exhaustiveness-check": "warn",
"@typescript-eslint/unbound-method": "off"
},
"overrides": [
{
"files": [ "*.test.ts", "*.test.tsx" ],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
},
{
"files": [ "*.tsx" ],
"rules": {
"consistent-return": "off"
}
}
]
}