eslint-config-silverwind 85.1.5 → 86.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eslintrc.js +695 -0
- package/dist/index.js +765 -0
- package/package.json +15 -9
- package/eslint.config.js +0 -85
- package/index.json +0 -1
package/dist/eslintrc.js
ADDED
|
@@ -0,0 +1,695 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"root": true,
|
|
3
|
+
"reportUnusedDisableDirectives": true,
|
|
4
|
+
"plugins": [
|
|
5
|
+
"@eslint-community/eslint-plugin-eslint-comments",
|
|
6
|
+
"@stylistic/eslint-plugin-js",
|
|
7
|
+
"eslint-plugin-array-func",
|
|
8
|
+
"eslint-plugin-i",
|
|
9
|
+
"eslint-plugin-no-use-extend-native",
|
|
10
|
+
"eslint-plugin-regexp",
|
|
11
|
+
"eslint-plugin-sonarjs",
|
|
12
|
+
"eslint-plugin-unicorn",
|
|
13
|
+
"eslint-plugin-vitest",
|
|
14
|
+
"eslint-plugin-vitest-globals",
|
|
15
|
+
],
|
|
16
|
+
"parserOptions": {
|
|
17
|
+
"sourceType": "module",
|
|
18
|
+
"ecmaVersion": "latest",
|
|
19
|
+
},
|
|
20
|
+
"env": {
|
|
21
|
+
"browser": true,
|
|
22
|
+
"es2024": true,
|
|
23
|
+
"node": true,
|
|
24
|
+
},
|
|
25
|
+
"settings": {
|
|
26
|
+
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
|
|
27
|
+
"import/parsers": {
|
|
28
|
+
"@typescript-eslint/parser": [".js", ".jsx", ".ts", ".tsx"],
|
|
29
|
+
},
|
|
30
|
+
"import/resolver": {
|
|
31
|
+
"typescript": true,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
"ignorePatterns": [
|
|
35
|
+
"**/vendor/**",
|
|
36
|
+
"**/dist/**",
|
|
37
|
+
"**/*.snap",
|
|
38
|
+
"!.storybook",
|
|
39
|
+
],
|
|
40
|
+
"overrides": [
|
|
41
|
+
{
|
|
42
|
+
"files": ["**/*worker.*"],
|
|
43
|
+
"env": {
|
|
44
|
+
"worker": true,
|
|
45
|
+
},
|
|
46
|
+
"rules": {
|
|
47
|
+
"no-restricted-globals": [2, "addEventListener", "blur", "close", "closed", "confirm", "defaultStatus", "defaultstatus", "error", "event", "external", "find", "focus", "frameElement", "frames", "history", "innerHeight", "innerWidth", "isFinite", "isNaN", "length", "locationbar", "menubar", "moveBy", "moveTo", "name", "onblur", "onerror", "onfocus", "onload", "onresize", "onunload", "open", "opener", "opera", "outerHeight", "outerWidth", "pageXOffset", "pageYOffset", "parent", "print", "removeEventListener", "resizeBy", "resizeTo", "screen", "screenLeft", "screenTop", "screenX", "screenY", "scroll", "scrollbars", "scrollBy", "scrollTo", "scrollX", "scrollY", "status", "statusbar", "stop", "toolbar", "top", "window"]
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"files": [
|
|
52
|
+
"**/*.test.*",
|
|
53
|
+
"vitest.setup.*",
|
|
54
|
+
],
|
|
55
|
+
"env": {
|
|
56
|
+
"vitest-globals/env": true,
|
|
57
|
+
},
|
|
58
|
+
"rules": {
|
|
59
|
+
"unicorn/consistent-function-scoping": [0],
|
|
60
|
+
"vitest/consistent-test-filename": [0],
|
|
61
|
+
"vitest/consistent-test-it": [0],
|
|
62
|
+
"vitest/expect-expect": [0],
|
|
63
|
+
"vitest/max-expects": [0],
|
|
64
|
+
"vitest/max-nested-describe": [0],
|
|
65
|
+
"vitest/no-alias-methods": [0],
|
|
66
|
+
"vitest/no-commented-out-tests": [0],
|
|
67
|
+
"vitest/no-conditional-expect": [0],
|
|
68
|
+
"vitest/no-conditional-in-test": [0],
|
|
69
|
+
"vitest/no-conditional-tests": [0],
|
|
70
|
+
"vitest/no-disabled-tests": [0],
|
|
71
|
+
"vitest/no-done-callback": [0],
|
|
72
|
+
"vitest/no-duplicate-hooks": [0],
|
|
73
|
+
"vitest/no-focused-tests": [0],
|
|
74
|
+
"vitest/no-hooks": [0],
|
|
75
|
+
"vitest/no-identical-title": [2],
|
|
76
|
+
"vitest/no-interpolation-in-snapshots": [0],
|
|
77
|
+
"vitest/no-large-snapshots": [0],
|
|
78
|
+
"vitest/no-mocks-import": [0],
|
|
79
|
+
"vitest/no-restricted-matchers": [0],
|
|
80
|
+
"vitest/no-restricted-vi-methods": [0],
|
|
81
|
+
"vitest/no-standalone-expect": [0],
|
|
82
|
+
"vitest/no-test-prefixes": [0],
|
|
83
|
+
"vitest/no-test-return-statement": [0],
|
|
84
|
+
"vitest/prefer-called-with": [0],
|
|
85
|
+
"vitest/prefer-comparison-matcher": [0],
|
|
86
|
+
"vitest/prefer-each": [0],
|
|
87
|
+
"vitest/prefer-equality-matcher": [0],
|
|
88
|
+
"vitest/prefer-expect-resolves": [0],
|
|
89
|
+
"vitest/prefer-hooks-in-order": [0],
|
|
90
|
+
"vitest/prefer-hooks-on-top": [2],
|
|
91
|
+
"vitest/prefer-lowercase-title": [0],
|
|
92
|
+
"vitest/prefer-mock-promise-shorthand": [0],
|
|
93
|
+
"vitest/prefer-snapshot-hint": [0],
|
|
94
|
+
"vitest/prefer-spy-on": [0],
|
|
95
|
+
"vitest/prefer-strict-equal": [0],
|
|
96
|
+
"vitest/prefer-to-be": [0],
|
|
97
|
+
"vitest/prefer-to-be-falsy": [0],
|
|
98
|
+
"vitest/prefer-to-be-object": [0],
|
|
99
|
+
"vitest/prefer-to-be-truthy": [0],
|
|
100
|
+
"vitest/prefer-to-contain": [0],
|
|
101
|
+
"vitest/prefer-to-have-length": [0],
|
|
102
|
+
"vitest/prefer-todo": [0],
|
|
103
|
+
"vitest/require-hook": [0],
|
|
104
|
+
"vitest/require-to-throw-message": [0],
|
|
105
|
+
"vitest/require-top-level-describe": [0],
|
|
106
|
+
"vitest/valid-describe-callback": [2],
|
|
107
|
+
"vitest/valid-expect": [2],
|
|
108
|
+
"vitest/valid-title": [2],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"files": ["**/*.config.*", "**/*.stories.*", "vitest.global.*"],
|
|
113
|
+
"rules": {
|
|
114
|
+
"i/no-unused-modules": [2, {"missingExports": true, "unusedExports": false}],
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"files": ["**/.storybook/**", "**/*.config.test.*", "**/*.d.ts"],
|
|
119
|
+
"rules": {
|
|
120
|
+
"i/no-unused-modules": [0],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"files": ["tests/e2e/**"],
|
|
125
|
+
"extends": "plugin:playwright/recommended",
|
|
126
|
+
"rules": {
|
|
127
|
+
"playwright/expect-expect": [0],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
"rules": {
|
|
132
|
+
"@eslint-community/eslint-comments/disable-enable-pair": [2, {"allowWholeFile": true}],
|
|
133
|
+
"@eslint-community/eslint-comments/no-aggregating-enable": [2],
|
|
134
|
+
"@eslint-community/eslint-comments/no-duplicate-disable": [2],
|
|
135
|
+
"@eslint-community/eslint-comments/no-restricted-disable": [0],
|
|
136
|
+
"@eslint-community/eslint-comments/no-unlimited-disable": [2],
|
|
137
|
+
"@eslint-community/eslint-comments/no-unused-disable": [2],
|
|
138
|
+
"@eslint-community/eslint-comments/no-unused-enable": [2],
|
|
139
|
+
"@eslint-community/eslint-comments/no-use": [0],
|
|
140
|
+
"@eslint-community/eslint-comments/require-description": [0],
|
|
141
|
+
"@stylistic/js/array-bracket-newline": [0],
|
|
142
|
+
"@stylistic/js/array-bracket-spacing": [2, "never"],
|
|
143
|
+
"@stylistic/js/array-element-newline": [0],
|
|
144
|
+
"@stylistic/js/arrow-parens": [0],
|
|
145
|
+
"@stylistic/js/arrow-spacing": [2, {"before": true, "after": true}],
|
|
146
|
+
"@stylistic/js/block-spacing": [0],
|
|
147
|
+
"@stylistic/js/brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
|
148
|
+
"@stylistic/js/comma-dangle": [2, "only-multiline"],
|
|
149
|
+
"@stylistic/js/comma-spacing": [2, {"before": false, "after": true}],
|
|
150
|
+
"@stylistic/js/comma-style": [2, "last"],
|
|
151
|
+
"@stylistic/js/computed-property-spacing": [2, "never"],
|
|
152
|
+
"@stylistic/js/dot-location": [2, "property"],
|
|
153
|
+
"@stylistic/js/eol-last": [2],
|
|
154
|
+
"@stylistic/js/function-call-argument-newline": [0],
|
|
155
|
+
"@stylistic/js/function-call-spacing": [2, "never"],
|
|
156
|
+
"@stylistic/js/function-paren-newline": [0],
|
|
157
|
+
"@stylistic/js/generator-star-spacing": [0],
|
|
158
|
+
"@stylistic/js/implicit-arrow-linebreak": [0],
|
|
159
|
+
"@stylistic/js/indent": [2, 2, {"ignoreComments": true, "SwitchCase": 1}],
|
|
160
|
+
"@stylistic/js/key-spacing": [2],
|
|
161
|
+
"@stylistic/js/keyword-spacing": [2],
|
|
162
|
+
"@stylistic/js/line-comment-position": [0],
|
|
163
|
+
"@stylistic/js/linebreak-style": [2, "unix"],
|
|
164
|
+
"@stylistic/js/lines-around-comment": [0],
|
|
165
|
+
"@stylistic/js/lines-between-class-members": [0],
|
|
166
|
+
"@stylistic/js/max-len": [0],
|
|
167
|
+
"@stylistic/js/max-statements-per-line": [0],
|
|
168
|
+
"@stylistic/js/multiline-comment-style": [0],
|
|
169
|
+
"@stylistic/js/multiline-ternary": [0],
|
|
170
|
+
"@stylistic/js/new-parens": [2],
|
|
171
|
+
"@stylistic/js/newline-per-chained-call": [0],
|
|
172
|
+
"@stylistic/js/no-confusing-arrow": [0],
|
|
173
|
+
"@stylistic/js/no-extra-parens": [0],
|
|
174
|
+
"@stylistic/js/no-extra-semi": [2],
|
|
175
|
+
"@stylistic/js/no-floating-decimal": [0],
|
|
176
|
+
"@stylistic/js/no-mixed-operators": [0],
|
|
177
|
+
"@stylistic/js/no-mixed-spaces-and-tabs": [2],
|
|
178
|
+
"@stylistic/js/no-multi-spaces": [2, {"ignoreEOLComments": true, "exceptions": {"Property": true}}],
|
|
179
|
+
"@stylistic/js/no-multiple-empty-lines": [2, {"max": 1, "maxEOF": 0, "maxBOF": 0}],
|
|
180
|
+
"@stylistic/js/no-tabs": [2],
|
|
181
|
+
"@stylistic/js/no-trailing-spaces": [2],
|
|
182
|
+
"@stylistic/js/no-whitespace-before-property": [2],
|
|
183
|
+
"@stylistic/js/nonblock-statement-body-position": [2],
|
|
184
|
+
"@stylistic/js/object-curly-newline": [0],
|
|
185
|
+
"@stylistic/js/object-curly-spacing": [2, "never"],
|
|
186
|
+
"@stylistic/js/object-property-newline": [0],
|
|
187
|
+
"@stylistic/js/one-var-declaration-per-line": [0],
|
|
188
|
+
"@stylistic/js/operator-linebreak": [2, "after"],
|
|
189
|
+
"@stylistic/js/padded-blocks": [2, "never"],
|
|
190
|
+
"@stylistic/js/padding-line-between-statements": [0],
|
|
191
|
+
"@stylistic/js/quote-props": [0],
|
|
192
|
+
"@stylistic/js/quotes": [2, "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
|
|
193
|
+
"@stylistic/js/rest-spread-spacing": [2, "never"],
|
|
194
|
+
"@stylistic/js/semi": [2, "always"],
|
|
195
|
+
"@stylistic/js/semi-spacing": [2, {"before": false, "after": true}],
|
|
196
|
+
"@stylistic/js/semi-style": [2, "last"],
|
|
197
|
+
"@stylistic/js/space-before-blocks": [2, "always"],
|
|
198
|
+
"@stylistic/js/space-before-function-paren": [2, {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
|
|
199
|
+
"@stylistic/js/space-in-parens": [2, "never"],
|
|
200
|
+
"@stylistic/js/space-infix-ops": [2],
|
|
201
|
+
"@stylistic/js/space-unary-ops": [2],
|
|
202
|
+
"@stylistic/js/spaced-comment": [0],
|
|
203
|
+
"@stylistic/js/switch-colon-spacing": [2],
|
|
204
|
+
"@stylistic/js/template-curly-spacing": [2, "never"],
|
|
205
|
+
"@stylistic/js/template-tag-spacing": [2, "never"],
|
|
206
|
+
"@stylistic/js/wrap-iife": [2, "inside"],
|
|
207
|
+
"@stylistic/js/wrap-regex": [0],
|
|
208
|
+
"@stylistic/js/yield-star-spacing": [2, "after"],
|
|
209
|
+
"accessor-pairs": [2],
|
|
210
|
+
"array-callback-return": [2, {"checkForEach": true}],
|
|
211
|
+
"array-func/avoid-reverse": [2],
|
|
212
|
+
"array-func/from-map": [2],
|
|
213
|
+
"array-func/no-unnecessary-this-arg": [2],
|
|
214
|
+
"array-func/prefer-array-from": [2],
|
|
215
|
+
"array-func/prefer-flat-map": [0],
|
|
216
|
+
"array-func/prefer-flat": [0],
|
|
217
|
+
"arrow-body-style": [0],
|
|
218
|
+
"block-scoped-var": [2],
|
|
219
|
+
"camelcase": [0],
|
|
220
|
+
"capitalized-comments": [0],
|
|
221
|
+
"class-methods-use-this": [0],
|
|
222
|
+
"complexity": [0],
|
|
223
|
+
"consistent-return": [0],
|
|
224
|
+
"consistent-this": [0],
|
|
225
|
+
"constructor-super": [2],
|
|
226
|
+
"curly": [0],
|
|
227
|
+
"default-case-last": [2],
|
|
228
|
+
"default-case": [0],
|
|
229
|
+
"default-param-last": [0],
|
|
230
|
+
"dot-notation": [0],
|
|
231
|
+
"eqeqeq": [2],
|
|
232
|
+
"for-direction": [2],
|
|
233
|
+
"func-name-matching": [2],
|
|
234
|
+
"func-names": [0],
|
|
235
|
+
"func-style": [0],
|
|
236
|
+
"getter-return": [2],
|
|
237
|
+
"grouped-accessor-pairs": [2],
|
|
238
|
+
"guard-for-in": [0],
|
|
239
|
+
"i/consistent-type-specifier-style": [0],
|
|
240
|
+
"i/default": [2],
|
|
241
|
+
"i/dynamic-import-chunkname": [0],
|
|
242
|
+
"i/export": [2],
|
|
243
|
+
"i/exports-last": [0],
|
|
244
|
+
"i/extensions": [2, "ignorePackages"],
|
|
245
|
+
"i/first": [2],
|
|
246
|
+
"i/group-exports": [0],
|
|
247
|
+
"i/max-dependencies": [0],
|
|
248
|
+
"i/named": [2],
|
|
249
|
+
"i/namespace": [0],
|
|
250
|
+
"i/newline-after-import": [0],
|
|
251
|
+
"i/no-absolute-path": [2],
|
|
252
|
+
"i/no-amd": [2],
|
|
253
|
+
"i/no-anonymous-default-export": [0],
|
|
254
|
+
"i/no-commonjs": [2, {"allowConditionalRequire": false}],
|
|
255
|
+
"i/no-cycle": [2, {"ignoreExternal": true, "maxDepth": 1}],
|
|
256
|
+
"i/no-default-export": [0],
|
|
257
|
+
"i/no-deprecated": [0],
|
|
258
|
+
"i/no-duplicates": [2],
|
|
259
|
+
"i/no-dynamic-require": [0],
|
|
260
|
+
"i/no-empty-named-blocks": [2],
|
|
261
|
+
"i/no-extraneous-dependencies": [2],
|
|
262
|
+
"i/no-import-module-exports": [0],
|
|
263
|
+
"i/no-internal-modules": [0],
|
|
264
|
+
"i/no-mutable-exports": [0],
|
|
265
|
+
"i/no-named-as-default-member": [0],
|
|
266
|
+
"i/no-named-as-default": [0],
|
|
267
|
+
"i/no-named-default": [0],
|
|
268
|
+
"i/no-named-export": [0],
|
|
269
|
+
"i/no-namespace": [0],
|
|
270
|
+
"i/no-nodejs-modules": [0],
|
|
271
|
+
"i/no-relative-packages": [0],
|
|
272
|
+
"i/no-relative-parent-imports": [0],
|
|
273
|
+
"i/no-restricted-paths": [0],
|
|
274
|
+
"i/no-self-import": [2],
|
|
275
|
+
"i/no-unassigned-import": [0],
|
|
276
|
+
"i/no-unresolved": [2, {"commonjs": true, "ignore": ["\\?.+$", "^vitest/"]}],
|
|
277
|
+
"i/no-unused-modules": [2, {"unusedExports": true}],
|
|
278
|
+
"i/no-useless-path-segments": [2, {"commonjs": true}],
|
|
279
|
+
"i/no-webpack-loader-syntax": [2],
|
|
280
|
+
"i/order": [0],
|
|
281
|
+
"i/prefer-default-export": [0],
|
|
282
|
+
"i/unambiguous": [0],
|
|
283
|
+
"id-blacklist": [0],
|
|
284
|
+
"id-denylist": [0],
|
|
285
|
+
"id-length": [0],
|
|
286
|
+
"id-match": [0],
|
|
287
|
+
"init-declarations": [0],
|
|
288
|
+
"line-comment-position": [0],
|
|
289
|
+
"logical-assignment-operators": [0],
|
|
290
|
+
"max-classes-per-file": [0],
|
|
291
|
+
"max-depth": [0],
|
|
292
|
+
"max-lines-per-function": [0],
|
|
293
|
+
"max-lines": [0],
|
|
294
|
+
"max-nested-callbacks": [0],
|
|
295
|
+
"max-params": [0],
|
|
296
|
+
"max-statements": [0],
|
|
297
|
+
"multiline-comment-style": [0],
|
|
298
|
+
"new-cap": [0],
|
|
299
|
+
"no-alert": [0],
|
|
300
|
+
"no-array-constructor": [2],
|
|
301
|
+
"no-async-promise-executor": [0],
|
|
302
|
+
"no-await-in-loop": [0],
|
|
303
|
+
"no-bitwise": [0],
|
|
304
|
+
"no-buffer-constructor": [0],
|
|
305
|
+
"no-caller": [2],
|
|
306
|
+
"no-case-declarations": [2],
|
|
307
|
+
"no-class-assign": [2],
|
|
308
|
+
"no-compare-neg-zero": [2],
|
|
309
|
+
"no-cond-assign": [2, "except-parens"],
|
|
310
|
+
"no-console": [1, {"allow": ["debug", "info", "warn", "error"]}],
|
|
311
|
+
"no-const-assign": [2],
|
|
312
|
+
"no-constant-binary-expression": [2],
|
|
313
|
+
"no-constant-condition": [0],
|
|
314
|
+
"no-constructor-return": [2],
|
|
315
|
+
"no-continue": [0],
|
|
316
|
+
"no-control-regex": [0],
|
|
317
|
+
"no-debugger": [1],
|
|
318
|
+
"no-delete-var": [2],
|
|
319
|
+
"no-div-regex": [0],
|
|
320
|
+
"no-dupe-args": [2],
|
|
321
|
+
"no-dupe-class-members": [2],
|
|
322
|
+
"no-dupe-else-if": [2],
|
|
323
|
+
"no-dupe-keys": [2],
|
|
324
|
+
"no-duplicate-case": [2],
|
|
325
|
+
"no-duplicate-imports": [0],
|
|
326
|
+
"no-else-return": [0],
|
|
327
|
+
"no-empty-character-class": [2],
|
|
328
|
+
"no-empty-function": [0],
|
|
329
|
+
"no-empty-pattern": [2],
|
|
330
|
+
"no-empty-static-block": [2],
|
|
331
|
+
"no-empty": [2, {"allowEmptyCatch": true}],
|
|
332
|
+
"no-eq-null": [2],
|
|
333
|
+
"no-eval": [2],
|
|
334
|
+
"no-ex-assign": [2],
|
|
335
|
+
"no-extend-native": [2],
|
|
336
|
+
"no-extra-bind": [2],
|
|
337
|
+
"no-extra-boolean-cast": [2],
|
|
338
|
+
"no-extra-label": [0],
|
|
339
|
+
"no-fallthrough": [2],
|
|
340
|
+
"no-func-assign": [2],
|
|
341
|
+
"no-global-assign": [2],
|
|
342
|
+
"no-implicit-coercion": [2],
|
|
343
|
+
"no-implicit-globals": [0],
|
|
344
|
+
"no-implied-eval": [2],
|
|
345
|
+
"no-import-assign": [2],
|
|
346
|
+
"no-inline-comments": [0],
|
|
347
|
+
"no-inner-declarations": [2],
|
|
348
|
+
"no-invalid-regexp": [2],
|
|
349
|
+
"no-invalid-this": [0],
|
|
350
|
+
"no-irregular-whitespace": [2],
|
|
351
|
+
"no-iterator": [2],
|
|
352
|
+
"no-label-var": [2],
|
|
353
|
+
"no-labels": [0],
|
|
354
|
+
"no-lone-blocks": [2],
|
|
355
|
+
"no-lonely-if": [0],
|
|
356
|
+
"no-loop-func": [0],
|
|
357
|
+
"no-loss-of-precision": [2],
|
|
358
|
+
"no-magic-numbers": [0],
|
|
359
|
+
"no-misleading-character-class": [2],
|
|
360
|
+
"no-multi-assign": [0],
|
|
361
|
+
"no-multi-str": [2],
|
|
362
|
+
"no-negated-condition": [0],
|
|
363
|
+
"no-nested-ternary": [0],
|
|
364
|
+
"no-new-func": [2],
|
|
365
|
+
"no-new-native-nonconstructor": [2],
|
|
366
|
+
"no-new-symbol": [2],
|
|
367
|
+
"no-new-wrappers": [2],
|
|
368
|
+
"no-new": [0],
|
|
369
|
+
"no-nonoctal-decimal-escape": [2],
|
|
370
|
+
"no-obj-calls": [2],
|
|
371
|
+
"no-object-constructor": [2],
|
|
372
|
+
"no-octal-escape": [2],
|
|
373
|
+
"no-octal": [2],
|
|
374
|
+
"no-param-reassign": [0],
|
|
375
|
+
"no-plusplus": [0],
|
|
376
|
+
"no-promise-executor-return": [0],
|
|
377
|
+
"no-proto": [2],
|
|
378
|
+
"no-prototype-builtins": [2],
|
|
379
|
+
"no-redeclare": [2],
|
|
380
|
+
"no-regex-spaces": [2],
|
|
381
|
+
"no-restricted-exports": [0],
|
|
382
|
+
"no-restricted-globals": [2, "addEventListener", "blur", "close", "closed", "confirm", "defaultStatus", "defaultstatus", "error", "event", "external", "find", "focus", "frameElement", "frames", "history", "innerHeight", "innerWidth", "isFinite", "isNaN", "length", "location", "locationbar", "menubar", "moveBy", "moveTo", "name", "onblur", "onerror", "onfocus", "onload", "onresize", "onunload", "open", "opener", "opera", "outerHeight", "outerWidth", "pageXOffset", "pageYOffset", "parent", "print", "removeEventListener", "resizeBy", "resizeTo", "screen", "screenLeft", "screenTop", "screenX", "screenY", "scroll", "scrollbars", "self", "scrollBy", "scrollTo", "scrollX", "scrollY", "status", "statusbar", "stop", "toolbar", "top", "__dirname", "__filename"],
|
|
383
|
+
"no-restricted-imports": [2, "punycode", "assert"],
|
|
384
|
+
"no-restricted-properties": [0],
|
|
385
|
+
"no-restricted-syntax": [2, "WithStatement", "ForInStatement", "LabeledStatement", "SequenceExpression"],
|
|
386
|
+
"no-return-assign": [0],
|
|
387
|
+
"no-script-url": [2],
|
|
388
|
+
"no-self-assign": [2, {"props": true}],
|
|
389
|
+
"no-self-compare": [2],
|
|
390
|
+
"no-sequences": [2],
|
|
391
|
+
"no-setter-return": [2],
|
|
392
|
+
"no-shadow-restricted-names": [2],
|
|
393
|
+
"no-shadow": [0],
|
|
394
|
+
"no-sparse-arrays": [2],
|
|
395
|
+
"no-template-curly-in-string": [2],
|
|
396
|
+
"no-ternary": [0],
|
|
397
|
+
"no-this-before-super": [2],
|
|
398
|
+
"no-throw-literal": [2],
|
|
399
|
+
"no-undef-init": [2],
|
|
400
|
+
"no-undef": [2, {"typeof": true}],
|
|
401
|
+
"no-undefined": [0],
|
|
402
|
+
"no-underscore-dangle": [0],
|
|
403
|
+
"no-unexpected-multiline": [2],
|
|
404
|
+
"no-unmodified-loop-condition": [2],
|
|
405
|
+
"no-unneeded-ternary": [0],
|
|
406
|
+
"no-unreachable-loop": [2],
|
|
407
|
+
"no-unreachable": [2],
|
|
408
|
+
"no-unsafe-finally": [2],
|
|
409
|
+
"no-unsafe-negation": [2],
|
|
410
|
+
"no-unsafe-optional-chaining": [2],
|
|
411
|
+
"no-unused-expressions": [2],
|
|
412
|
+
"no-unused-labels": [2],
|
|
413
|
+
"no-unused-private-class-members": [2],
|
|
414
|
+
"no-unused-vars": [2, {"vars": "all", "args": "all", "caughtErrors": "all", "ignoreRestSiblings": false, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_[^_]*$", "caughtErrorsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_"}
|
|
415
|
+
],
|
|
416
|
+
"no-use-before-define": [2, {"functions": false, "classes": true, "variables": true, "allowNamedExports": true}],
|
|
417
|
+
"no-use-extend-native/no-use-extend-native": [2],
|
|
418
|
+
"no-useless-backreference": [2],
|
|
419
|
+
"no-useless-call": [2],
|
|
420
|
+
"no-useless-catch": [2],
|
|
421
|
+
"no-useless-computed-key": [2],
|
|
422
|
+
"no-useless-concat": [2],
|
|
423
|
+
"no-useless-constructor": [2],
|
|
424
|
+
"no-useless-escape": [2],
|
|
425
|
+
"no-useless-rename": [2],
|
|
426
|
+
"no-useless-return": [0],
|
|
427
|
+
"no-var": [2],
|
|
428
|
+
"no-void": [2],
|
|
429
|
+
"no-warning-comments": [0],
|
|
430
|
+
"no-with": [0],
|
|
431
|
+
"object-shorthand": [2, "always"],
|
|
432
|
+
"one-var": [0],
|
|
433
|
+
"operator-assignment": [2, "always"],
|
|
434
|
+
"prefer-arrow-callback": [2, {"allowNamedFunctions": true, "allowUnboundThis": true}],
|
|
435
|
+
"prefer-const": [2, {"destructuring": "all", "ignoreReadBeforeAssign": true}],
|
|
436
|
+
"prefer-destructuring": [0],
|
|
437
|
+
"prefer-exponentiation-operator": [2],
|
|
438
|
+
"prefer-named-capture-group": [0],
|
|
439
|
+
"prefer-numeric-literals": [2],
|
|
440
|
+
"prefer-object-has-own": [2],
|
|
441
|
+
"prefer-object-spread": [2],
|
|
442
|
+
"prefer-promise-reject-errors": [2, {"allowEmptyReject": false}],
|
|
443
|
+
"prefer-regex-literals": [2],
|
|
444
|
+
"prefer-rest-params": [2],
|
|
445
|
+
"prefer-spread": [2],
|
|
446
|
+
"prefer-template": [2],
|
|
447
|
+
"radix": [2, "as-needed"],
|
|
448
|
+
"regexp/confusing-quantifier": [2],
|
|
449
|
+
"regexp/control-character-escape": [2],
|
|
450
|
+
"regexp/hexadecimal-escape": [0],
|
|
451
|
+
"regexp/letter-case": [0],
|
|
452
|
+
"regexp/match-any": [0],
|
|
453
|
+
"regexp/negation": [2],
|
|
454
|
+
"regexp/no-contradiction-with-assertion": [0],
|
|
455
|
+
"regexp/no-control-character": [0],
|
|
456
|
+
"regexp/no-dupe-characters-character-class": [2],
|
|
457
|
+
"regexp/no-dupe-disjunctions": [2],
|
|
458
|
+
"regexp/no-empty-alternative": [2],
|
|
459
|
+
"regexp/no-empty-capturing-group": [2],
|
|
460
|
+
"regexp/no-empty-character-class": [0],
|
|
461
|
+
"regexp/no-empty-group": [2],
|
|
462
|
+
"regexp/no-empty-lookarounds-assertion": [2],
|
|
463
|
+
"regexp/no-empty-string-literal": [2],
|
|
464
|
+
"regexp/no-escape-backspace": [2],
|
|
465
|
+
"regexp/no-extra-lookaround-assertions": [0],
|
|
466
|
+
"regexp/no-invalid-regexp": [2],
|
|
467
|
+
"regexp/no-invisible-character": [2],
|
|
468
|
+
"regexp/no-lazy-ends": [2],
|
|
469
|
+
"regexp/no-legacy-features": [2],
|
|
470
|
+
"regexp/no-misleading-capturing-group": [0],
|
|
471
|
+
"regexp/no-misleading-unicode-character": [0],
|
|
472
|
+
"regexp/no-missing-g-flag": [2],
|
|
473
|
+
"regexp/no-non-standard-flag": [2],
|
|
474
|
+
"regexp/no-obscure-range": [2],
|
|
475
|
+
"regexp/no-octal": [2],
|
|
476
|
+
"regexp/no-optional-assertion": [2],
|
|
477
|
+
"regexp/no-potentially-useless-backreference": [2],
|
|
478
|
+
"regexp/no-standalone-backslash": [2],
|
|
479
|
+
"regexp/no-super-linear-backtracking": [0],
|
|
480
|
+
"regexp/no-super-linear-move": [0],
|
|
481
|
+
"regexp/no-trivially-nested-assertion": [2],
|
|
482
|
+
"regexp/no-trivially-nested-quantifier": [2],
|
|
483
|
+
"regexp/no-unused-capturing-group": [0],
|
|
484
|
+
"regexp/no-useless-assertions": [2],
|
|
485
|
+
"regexp/no-useless-backreference": [2],
|
|
486
|
+
"regexp/no-useless-character-class": [0],
|
|
487
|
+
"regexp/no-useless-dollar-replacements": [2],
|
|
488
|
+
"regexp/no-useless-escape": [2],
|
|
489
|
+
"regexp/no-useless-flag": [2],
|
|
490
|
+
"regexp/no-useless-lazy": [2],
|
|
491
|
+
"regexp/no-useless-non-capturing-group": [2],
|
|
492
|
+
"regexp/no-useless-quantifier": [2],
|
|
493
|
+
"regexp/no-useless-range": [2],
|
|
494
|
+
"regexp/no-useless-set-operand": [2],
|
|
495
|
+
"regexp/no-useless-string-literal": [2],
|
|
496
|
+
"regexp/no-useless-two-nums-quantifier": [2],
|
|
497
|
+
"regexp/no-zero-quantifier": [2],
|
|
498
|
+
"regexp/optimal-lookaround-quantifier": [2],
|
|
499
|
+
"regexp/optimal-quantifier-concatenation": [0],
|
|
500
|
+
"regexp/prefer-character-class": [0],
|
|
501
|
+
"regexp/prefer-d": [0],
|
|
502
|
+
"regexp/prefer-escape-replacement-dollar-char": [0],
|
|
503
|
+
"regexp/prefer-lookaround": [0],
|
|
504
|
+
"regexp/prefer-named-backreference": [0],
|
|
505
|
+
"regexp/prefer-named-capture-group": [0],
|
|
506
|
+
"regexp/prefer-named-replacement": [0],
|
|
507
|
+
"regexp/prefer-plus-quantifier": [2],
|
|
508
|
+
"regexp/prefer-predefined-assertion": [2],
|
|
509
|
+
"regexp/prefer-quantifier": [0],
|
|
510
|
+
"regexp/prefer-question-quantifier": [2],
|
|
511
|
+
"regexp/prefer-range": [2],
|
|
512
|
+
"regexp/prefer-regexp-exec": [2],
|
|
513
|
+
"regexp/prefer-regexp-test": [2],
|
|
514
|
+
"regexp/prefer-result-array-groups": [0],
|
|
515
|
+
"regexp/prefer-set-operation": [2],
|
|
516
|
+
"regexp/prefer-star-quantifier": [2],
|
|
517
|
+
"regexp/prefer-unicode-codepoint-escapes": [2],
|
|
518
|
+
"regexp/prefer-w": [0],
|
|
519
|
+
"regexp/require-unicode-regexp": [0],
|
|
520
|
+
"regexp/simplify-set-operations": [2],
|
|
521
|
+
"regexp/sort-alternatives": [0],
|
|
522
|
+
"regexp/sort-character-class-elements": [0],
|
|
523
|
+
"regexp/sort-flags": [0],
|
|
524
|
+
"regexp/strict": [0],
|
|
525
|
+
"regexp/unicode-escape": [0],
|
|
526
|
+
"regexp/unicode-property": [0],
|
|
527
|
+
"regexp/use-ignore-case": [0],
|
|
528
|
+
"require-atomic-updates": [0],
|
|
529
|
+
"require-await": [0],
|
|
530
|
+
"require-unicode-regexp": [0],
|
|
531
|
+
"require-yield": [2],
|
|
532
|
+
"sonarjs/cognitive-complexity": [0],
|
|
533
|
+
"sonarjs/elseif-without-else": [0],
|
|
534
|
+
"sonarjs/max-switch-cases": [0],
|
|
535
|
+
"sonarjs/no-all-duplicated-branches": [2],
|
|
536
|
+
"sonarjs/no-collapsible-if": [0],
|
|
537
|
+
"sonarjs/no-collection-size-mischeck": [2],
|
|
538
|
+
"sonarjs/no-duplicate-string": [0],
|
|
539
|
+
"sonarjs/no-duplicated-branches": [0],
|
|
540
|
+
"sonarjs/no-element-overwrite": [2],
|
|
541
|
+
"sonarjs/no-empty-collection": [2],
|
|
542
|
+
"sonarjs/no-extra-arguments": [2],
|
|
543
|
+
"sonarjs/no-gratuitous-expressions": [2],
|
|
544
|
+
"sonarjs/no-identical-conditions": [2],
|
|
545
|
+
"sonarjs/no-identical-expressions": [2],
|
|
546
|
+
"sonarjs/no-identical-functions": [2, 5],
|
|
547
|
+
"sonarjs/no-ignored-return": [2],
|
|
548
|
+
"sonarjs/no-inverted-boolean-check": [2],
|
|
549
|
+
"sonarjs/no-nested-switch": [0],
|
|
550
|
+
"sonarjs/no-nested-template-literals": [0],
|
|
551
|
+
"sonarjs/no-one-iteration-loop": [2],
|
|
552
|
+
"sonarjs/no-redundant-boolean": [2],
|
|
553
|
+
"sonarjs/no-redundant-jump": [0],
|
|
554
|
+
"sonarjs/no-same-line-conditional": [2],
|
|
555
|
+
"sonarjs/no-small-switch": [0],
|
|
556
|
+
"sonarjs/no-unused-collection": [2],
|
|
557
|
+
"sonarjs/no-use-of-empty-return-value": [2],
|
|
558
|
+
"sonarjs/no-useless-catch": [2],
|
|
559
|
+
"sonarjs/non-existent-operator": [2],
|
|
560
|
+
"sonarjs/prefer-immediate-return": [0],
|
|
561
|
+
"sonarjs/prefer-object-literal": [0],
|
|
562
|
+
"sonarjs/prefer-single-boolean-return": [0],
|
|
563
|
+
"sonarjs/prefer-while": [2],
|
|
564
|
+
"sort-imports": [0],
|
|
565
|
+
"sort-keys": [0],
|
|
566
|
+
"sort-vars": [0],
|
|
567
|
+
"strict": [0],
|
|
568
|
+
"symbol-description": [2],
|
|
569
|
+
"unicode-bom": [2, "never"],
|
|
570
|
+
"unicorn/better-regex": [0],
|
|
571
|
+
"unicorn/catch-error-name": [0],
|
|
572
|
+
"unicorn/consistent-destructuring": [2],
|
|
573
|
+
"unicorn/consistent-empty-array-spread": [2],
|
|
574
|
+
"unicorn/consistent-function-scoping": [2],
|
|
575
|
+
"unicorn/custom-error-definition": [0],
|
|
576
|
+
"unicorn/empty-brace-spaces": [2],
|
|
577
|
+
"unicorn/error-message": [0],
|
|
578
|
+
"unicorn/escape-case": [0],
|
|
579
|
+
"unicorn/expiring-todo-comments": [0],
|
|
580
|
+
"unicorn/explicit-length-check": [0],
|
|
581
|
+
"unicorn/filename-case": [0],
|
|
582
|
+
"unicorn/import-index": [0],
|
|
583
|
+
"unicorn/import-style": [0],
|
|
584
|
+
"unicorn/new-for-builtins": [2],
|
|
585
|
+
"unicorn/no-abusive-eslint-disable": [0],
|
|
586
|
+
"unicorn/no-anonymous-default-export": [0],
|
|
587
|
+
"unicorn/no-array-callback-reference": [0],
|
|
588
|
+
"unicorn/no-array-for-each": [2],
|
|
589
|
+
"unicorn/no-array-method-this-argument": [2],
|
|
590
|
+
"unicorn/no-array-push-push": [2],
|
|
591
|
+
"unicorn/no-array-reduce": [0],
|
|
592
|
+
"unicorn/no-await-expression-member": [0],
|
|
593
|
+
"unicorn/no-await-in-promise-methods": [2],
|
|
594
|
+
"unicorn/no-console-spaces": [0],
|
|
595
|
+
"unicorn/no-document-cookie": [2],
|
|
596
|
+
"unicorn/no-empty-file": [0],
|
|
597
|
+
"unicorn/no-for-loop": [0],
|
|
598
|
+
"unicorn/no-hex-escape": [0],
|
|
599
|
+
"unicorn/no-instanceof-array": [0],
|
|
600
|
+
"unicorn/no-invalid-fetch-options": [2],
|
|
601
|
+
"unicorn/no-invalid-remove-event-listener": [2],
|
|
602
|
+
"unicorn/no-keyword-prefix": [0],
|
|
603
|
+
"unicorn/no-lonely-if": [2],
|
|
604
|
+
"unicorn/no-magic-array-flat-depth": [0],
|
|
605
|
+
"unicorn/no-negated-condition": [0],
|
|
606
|
+
"unicorn/no-nested-ternary": [0],
|
|
607
|
+
"unicorn/no-new-array": [0],
|
|
608
|
+
"unicorn/no-new-buffer": [0],
|
|
609
|
+
"unicorn/no-null": [0],
|
|
610
|
+
"unicorn/no-object-as-default-parameter": [0],
|
|
611
|
+
"unicorn/no-process-exit": [0],
|
|
612
|
+
"unicorn/no-single-promise-in-promise-methods": [2],
|
|
613
|
+
"unicorn/no-static-only-class": [2],
|
|
614
|
+
"unicorn/no-thenable": [0],
|
|
615
|
+
"unicorn/no-this-assignment": [2],
|
|
616
|
+
"unicorn/no-typeof-undefined": [2],
|
|
617
|
+
"unicorn/no-unnecessary-await": [2],
|
|
618
|
+
"unicorn/no-unnecessary-polyfills": [2],
|
|
619
|
+
"unicorn/no-unreadable-array-destructuring": [0],
|
|
620
|
+
"unicorn/no-unreadable-iife": [2],
|
|
621
|
+
"unicorn/no-unused-properties": [2],
|
|
622
|
+
"unicorn/no-useless-fallback-in-spread": [2],
|
|
623
|
+
"unicorn/no-useless-length-check": [2],
|
|
624
|
+
"unicorn/no-useless-promise-resolve-reject": [2],
|
|
625
|
+
"unicorn/no-useless-spread": [2],
|
|
626
|
+
"unicorn/no-useless-switch-case": [2],
|
|
627
|
+
"unicorn/no-useless-undefined": [0],
|
|
628
|
+
"unicorn/no-zero-fractions": [2],
|
|
629
|
+
"unicorn/number-literal-case": [0],
|
|
630
|
+
"unicorn/numeric-separators-style": [0],
|
|
631
|
+
"unicorn/prefer-add-event-listener": [2],
|
|
632
|
+
"unicorn/prefer-array-find": [2],
|
|
633
|
+
"unicorn/prefer-array-flat-map": [2],
|
|
634
|
+
"unicorn/prefer-array-flat": [2],
|
|
635
|
+
"unicorn/prefer-array-index-of": [2],
|
|
636
|
+
"unicorn/prefer-array-some": [2],
|
|
637
|
+
"unicorn/prefer-at": [0],
|
|
638
|
+
"unicorn/prefer-blob-reading-methods": [2],
|
|
639
|
+
"unicorn/prefer-code-point": [0],
|
|
640
|
+
"unicorn/prefer-date-now": [2],
|
|
641
|
+
"unicorn/prefer-default-parameters": [0],
|
|
642
|
+
"unicorn/prefer-dom-node-append": [2],
|
|
643
|
+
"unicorn/prefer-dom-node-dataset": [0],
|
|
644
|
+
"unicorn/prefer-dom-node-remove": [2],
|
|
645
|
+
"unicorn/prefer-dom-node-text-content": [2],
|
|
646
|
+
"unicorn/prefer-event-target": [2],
|
|
647
|
+
"unicorn/prefer-export-from": [0],
|
|
648
|
+
"unicorn/prefer-includes": [2],
|
|
649
|
+
"unicorn/prefer-json-parse-buffer": [0],
|
|
650
|
+
"unicorn/prefer-keyboard-event-key": [2],
|
|
651
|
+
"unicorn/prefer-logical-operator-over-ternary": [2],
|
|
652
|
+
"unicorn/prefer-math-trunc": [2],
|
|
653
|
+
"unicorn/prefer-modern-dom-apis": [0],
|
|
654
|
+
"unicorn/prefer-modern-math-apis": [2],
|
|
655
|
+
"unicorn/prefer-module": [0],
|
|
656
|
+
"unicorn/prefer-native-coercion-functions": [2],
|
|
657
|
+
"unicorn/prefer-negative-index": [2],
|
|
658
|
+
"unicorn/prefer-node-protocol": [2],
|
|
659
|
+
"unicorn/prefer-number-properties": [0],
|
|
660
|
+
"unicorn/prefer-object-from-entries": [2],
|
|
661
|
+
"unicorn/prefer-object-has-own": [0],
|
|
662
|
+
"unicorn/prefer-optional-catch-binding": [2],
|
|
663
|
+
"unicorn/prefer-prototype-methods": [2],
|
|
664
|
+
"unicorn/prefer-query-selector": [0],
|
|
665
|
+
"unicorn/prefer-reflect-apply": [0],
|
|
666
|
+
"unicorn/prefer-regexp-test": [2],
|
|
667
|
+
"unicorn/prefer-set-has": [0],
|
|
668
|
+
"unicorn/prefer-set-size": [2],
|
|
669
|
+
"unicorn/prefer-spread": [0],
|
|
670
|
+
"unicorn/prefer-string-raw": [0],
|
|
671
|
+
"unicorn/prefer-string-replace-all": [0],
|
|
672
|
+
"unicorn/prefer-string-slice": [0],
|
|
673
|
+
"unicorn/prefer-string-starts-ends-with": [2],
|
|
674
|
+
"unicorn/prefer-string-trim-start-end": [2],
|
|
675
|
+
"unicorn/prefer-structured-clone": [2],
|
|
676
|
+
"unicorn/prefer-switch": [0],
|
|
677
|
+
"unicorn/prefer-ternary": [0],
|
|
678
|
+
"unicorn/prefer-top-level-await": [0],
|
|
679
|
+
"unicorn/prefer-type-error": [0],
|
|
680
|
+
"unicorn/prevent-abbreviations": [0],
|
|
681
|
+
"unicorn/relative-url-style": [2],
|
|
682
|
+
"unicorn/require-array-join-separator": [2],
|
|
683
|
+
"unicorn/require-number-to-fixed-digits-argument": [2],
|
|
684
|
+
"unicorn/require-post-message-target-origin": [0],
|
|
685
|
+
"unicorn/string-content": [0],
|
|
686
|
+
"unicorn/switch-case-braces": [0],
|
|
687
|
+
"unicorn/template-indent": [2],
|
|
688
|
+
"unicorn/text-encoding-identifier-case": [0],
|
|
689
|
+
"unicorn/throw-new-error": [2],
|
|
690
|
+
"use-isnan": [2],
|
|
691
|
+
"valid-typeof": [2, {"requireStringLiterals": true}],
|
|
692
|
+
"vars-on-top": [0],
|
|
693
|
+
"yoda": [2, "never"],
|
|
694
|
+
},
|
|
695
|
+
};
|