-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
42 lines (41 loc) · 1.44 KB
/
.eslintrc
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-return-await": "warn",
"no-unreachable-loop": "warn",
"no-promise-executor-return": "warn",
"no-unsafe-optional-chaining": "warn",
"no-useless-backreference": "warn",
"require-atomic-updates": "warn",
"require-await": "warn",
"no-await-in-loop": "warn",
"spaced-comment": "warn",
"no-unused-vars": "off",
"curly": "warn",
// TypeScript
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/semi": "warn",
"@typescript-eslint/no-loss-of-precision": "warn",
"@typescript-eslint/quotes": ["warn", "double", { "avoidEscape": true }],
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-types": "warn"
}
}