-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
113 lines (113 loc) · 3.01 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"env": {
"browser": true,
"es2020": true,
"node": true
},
"extends": [
"airbnb-base",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"globals": {
"Optional": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"project": ["./tsconfig.json", "./tsconfig.test.json"]
},
"plugins": [
"@typescript-eslint",
"es",
"no-only-tests"
],
"rules": {
"import/prefer-default-export": 0,
"import/extensions": [
2,
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-shadow": 0,
"no-return-await": 0,
"@typescript-eslint/no-shadow": 1,
"no-useless-constructor": 0,
"no-empty-function": 0,
"no-unused-vars": 0,
"no-bitwise": 0,
"camelcase": 0,
"@typescript-eslint/no-unused-vars": 1,
"no-promise-executor-return": 0,
"no-continue": 0,
"no-use-before-define": 0,
"arrow-body-style": 0,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/ban-ts-comment": 1,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-empty-function": 0,
"default-case": 0,
"@typescript-eslint/require-await": 0,
"@typescript-eslint/no-unsafe-call": 1,
"@typescript-eslint/no-unsafe-member-access": 1,
"@typescript-eslint/no-unsafe-return": 1,
"@typescript-eslint/no-unsafe-argument": 1,
"@typescript-eslint/no-unsafe-assignment": 1,
"@typescript-eslint/no-non-null-assertion": 2,
"@typescript-eslint/no-floating-promises": 2,
"@typescript-eslint/prefer-for-of": 2,
"import/no-extraneous-dependencies": 0,
"import/order": 1,
"no-warning-comments": 1,
"@typescript-eslint/no-duplicate-enum-values": 1,
"no-only-tests/no-only-tests": 1,
"@typescript-eslint/strict-boolean-expressions": 2,
"no-restricted-syntax": [
"error",
{
"selector": "ForInStatement",
"message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."
},
{
"selector": "LabeledStatement",
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
},
{
"selector": "WithStatement",
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
}
]
},
"ignorePatterns": [
"dist/*"
],
"settings": {
"import/extensions": [
".js",
".ts",
".d.ts"
],
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".d.ts"
]
},
"import/resolver": {
"node": {
"extensions": [
".js",
".ts",
".d.ts"
]
}
}
}
}