-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
243 lines (242 loc) · 7.57 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
{
"root": true,
"ignorePatterns": [
"projects/**/*",
"package-lock.json"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.e2e.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/template/process-inline-templates",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"plugins": [
"no-null",
"@typescript-eslint"
],
"rules": {
"import/newline-after-import": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/no-forward-ref": "error",
"no-return-await": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/ban-types": "off",
"camelcase": "off",
"class-methods-use-this": "off",
"dot-notation": "off",
"eqeqeq": "error",
"lines-between-class-members": "off",
"padded-blocks": "off",
"max-len": [
"error",
{
"code": 200,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "warn",
// "require-jsdoc": "warn",
"guard-for-in": "off",
"jsdoc/newline-after-description": "off",
"jsdoc/no-types": "off",
"@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/member-delimiter-style": [
"off",
{
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error"
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-for-in-array": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-explicit-any": "off",
" @typescript-eslint/no-empty-function": "off",
"@angular-eslint/component-selector": "off",
"@angular-eslint/directive-selector": "off",
"@angular-eslint/no-forward-ref": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@angular-eslint/component-selector": "off",
"@angular-eslint/component-selector": "off",
"@angular-eslint/component-selector": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-implied-eval": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/require-await": "off",
"no-empty": "off",
"no-unused-expressions": "off",
"no-console": "off",
"@typescript-eslint/ban-ts-comment": [
"off",
{
"ts-ignore": "allow-with-description"
}
],
"@typescript-eslint/no-implied-eval": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/unbound-method": [
"off",
{
"ignoreStatic": true
}
],
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/semi": [
"off",
null
],
"@typescript-eslint/strict-boolean-expressions": "off",
"arrow-parens": [
"off",
"always"
],
"brace-style": [
"error",
"1tbs"
],
"comma-dangle": "error",
"default-case": "warn",
"default-param-last": "off",
"id-blacklist": "off",
"id-match": "off",
"import/no-default-export": "off",
"import/prefer-default-export": "off",
"import/no-unassigned-import": "off",
"import/no-unresolved": "off",
"import/no-mutable-exports": "off",
"import/extensions": "off",
"import/no-amd": "off",
"import/no-extraneous-dependencies": "off",
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"linebreak-style": "error",
"max-lines": "off",
"no-continue": "off",
"no-constant-condition": "error",
"no-control-regex": "warn",
"no-else-return": "off",
"no-invalid-regexp": "error",
"no-invalid-this": "off",
"no-irregular-whitespace": "error",
"no-multiple-empty-lines": "error",
"@angular-eslint/no-empty-lifecycle-method": "off",
"no-empty-function": "off",
"no-null/no-null": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-restricted-syntax": [
"off",
"ForInStatement"
],
"no-sparse-arrays": "error",
"no-tabs": "off",
"no-template-curly-in-string": "error",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"no-void": "off",
"@typescript-eslint/no-useless-constructor": [
"error"
],
"no-mixed-spaces-and-tabs": [
2,
"smart-tabs"
],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"prefer-arrow/prefer-arrow-functions": "off",
"prefer-template": "error",
"prefer-destructuring": "off"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}