-
-
Notifications
You must be signed in to change notification settings - Fork 319
/
Copy path.eslintrc.json
35 lines (35 loc) · 1.39 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
{
"env": {
"browser": true,
"es2021": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parserOptions": {
"project": ["tsconfig.json", "tsconfig.test.json"]
},
"rules": {
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/no-unsafe-call": ["warn"],
"@typescript-eslint/no-for-in-array": ["warn"],
"@typescript-eslint/no-floating-promises": ["warn"],
"@typescript-eslint/no-implied-eval": ["off"], // until https://github.com/typescript-eslint/typescript-eslint/issues/3621 is fixed
"@typescript-eslint/no-misused-promises": ["warn"],
"@typescript-eslint/no-unnecessary-type-assertion": ["warn"],
"@typescript-eslint/no-unsafe-assignment": ["warn"],
"@typescript-eslint/no-unsafe-member-access": ["warn"],
"@typescript-eslint/no-unsafe-return": ["warn"],
"@typescript-eslint/prefer-regexp-exec": ["warn"],
"@typescript-eslint/restrict-plus-operands": ["warn"],
"@typescript-eslint/restrict-template-expressions": ["warn"],
"@typescript-eslint/require-await": ["warn"],
"@typescript-eslint/strict-boolean-expressions": ["warn"],
"@typescript-eslint/unbound-method": "off",
"no-unused-vars": "off"
}
}