This repository has been archived by the owner on Apr 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (47 loc) · 1.45 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
43
44
45
46
47
48
49
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
// common
"no-return-await": "error",
"no-unreachable-loop": "error",
"no-promise-executor-return": "error",
"no-unsafe-optional-chaining": "error",
"no-useless-backreference": "error",
"require-atomic-updates": "error",
"no-await-in-loop": "error",
"spaced-comment": "error",
"sort-keys": "error",
"no-unused-vars": "off", // typescript-eslint suggestion: off
"curly": ["error", "multi"],
"eqeqeq": "error",
// TypeScript
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-loss-of-precision": "error",
"@typescript-eslint/quotes": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/ban-ts-comment": "off"
}
}