-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
55 lines (55 loc) · 2.02 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
{
"root": true,
"extends": [
"eslint:recommended",
"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",
"@typescript-eslint/comma-dangle": [ "warn", "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-non-null-assertion": "warn",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "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": "^_", "ignoreRestSiblings": true } ],
"@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"
}
}
]
}