@st1ggy/linter-config 8.0.0 → 10.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/README.md +94 -34
- package/data/linter-config-inventory.json +451 -216
- package/data/oxlint-config-inventory.json +1075 -1074
- package/data/oxlint-rule-map.json +5329 -2075
- package/data/oxlint-source-inventory.json +8175 -5661
- package/docs/OXLINT_RULE_MAPPING.md +213 -105
- package/docs/RULE_MAPPING.md +2 -2
- package/package.json +110 -19
- package/scripts/README.md +9 -6
- package/scripts/init-angular-ox.sh +4 -0
- package/scripts/init-nuxt-ox.sh +4 -0
- package/scripts/init-vue-ox.sh +4 -0
- package/scripts/linter-init-core.mjs +32 -15
- package/scripts/linter-init.mjs +4 -2
- package/src/eslint/configs/config.common.js +4 -1
- package/src/eslint/configs/config.import.js +1 -1
- package/src/eslint/configs/config.prettier.js +1 -1
- package/src/eslint/configs/config.react.js +19 -26
- package/src/eslint/configs/config.solid.js +1 -1
- package/src/eslint/configs/config.sonarjs.js +1 -1
- package/src/eslint/configs/config.typescript.js +6 -0
- package/src/eslint/configs/config.unicorn.js +8 -19
- package/src/eslint/configs/import-plugin.js +48 -0
- package/src/eslint/configs/svelte-stack.js +5 -12
- package/src/eslint/eslint.config.angular-ox.js +26 -0
- package/src/eslint/eslint.config.astro-ox.js +3 -0
- package/src/eslint/eslint.config.nuxt-ox.js +4 -0
- package/src/eslint/eslint.config.svelte-ox.js +4 -0
- package/src/eslint/eslint.config.vue-ox.js +17 -0
- package/src/eslint/ox-supplement.d.ts +39 -0
- package/src/oxfmt/index.d.ts +24 -0
- package/src/oxfmt/oxfmt.config.angular.js +3 -0
- package/src/oxfmt/oxfmt.config.astro.js +3 -0
- package/src/oxfmt/oxfmt.config.common.js +9 -1
- package/src/oxfmt/oxfmt.config.svelte.js +3 -0
- package/src/oxlint/configs/config.astro.js +134 -176
- package/src/oxlint/configs/config.common.js +107 -151
- package/src/oxlint/configs/config.next.js +365 -300
- package/src/oxlint/configs/config.react.js +365 -300
- package/src/oxlint/configs/config.solid.js +157 -223
- package/src/oxlint/configs/config.svelte.js +121 -190
- package/src/oxlint/create-config.js +1 -1
- package/src/oxlint/framework-rules.js +79 -0
- package/src/oxlint/index.d.ts +24 -0
- package/src/oxlint/oxlint.config.angular.js +14 -0
- package/src/oxlint/oxlint.config.nuxt.js +24 -0
- package/src/oxlint/oxlint.config.vue.js +8 -0
- package/src/oxlint/plugins/angular.js +1 -0
- package/src/oxlint/plugins/import-x.js +1 -1
- package/src/oxlint/plugins/nuxt.js +1 -0
- package/src/oxlint/plugins/react.js +1 -1
- package/src/oxlint/stacks.js +22 -8
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
'eslint-js',
|
|
8
8
|
'import-x-js',
|
|
9
9
|
'react-hooks-js',
|
|
10
|
-
'react-
|
|
10
|
+
'react-modern',
|
|
11
11
|
'sonarjs',
|
|
12
12
|
'stylistic-js',
|
|
13
13
|
'typescript-js',
|
|
@@ -19,10 +19,74 @@ export default {
|
|
|
19
19
|
'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
|
|
20
20
|
'import-x/resolver': { typescript: true, node: true },
|
|
21
21
|
react: { version: '999.999.999' },
|
|
22
|
+
'react-x': { version: 'detect', importSource: 'react', polymorphicPropName: 'as' },
|
|
22
23
|
},
|
|
23
24
|
profiles: {
|
|
24
|
-
|
|
25
|
+
'8e441c888b13fa04': {
|
|
25
26
|
rules: {
|
|
27
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
28
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
29
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
30
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
31
|
+
'react-modern/dom-no-hydrate': [2],
|
|
32
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
33
|
+
'react-modern/dom-no-render': [2],
|
|
34
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
35
|
+
'react-modern/dom-no-script-url': [1],
|
|
36
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
37
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
38
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
39
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
40
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
41
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
42
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
43
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
44
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
45
|
+
'react-modern/jsx-no-namespace': [2],
|
|
46
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
47
|
+
'react-modern/naming-convention-context-name': [1],
|
|
48
|
+
'react-modern/naming-convention-id-name': [1],
|
|
49
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
50
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
51
|
+
'react/no-array-index-key': [1],
|
|
52
|
+
'react-modern/no-children-count': [1],
|
|
53
|
+
'react-modern/no-children-for-each': [1],
|
|
54
|
+
'react-modern/no-children-map': [1],
|
|
55
|
+
'react-modern/no-children-only': [1],
|
|
56
|
+
'react-modern/no-children-to-array': [1],
|
|
57
|
+
'react/no-clone-element': [1],
|
|
58
|
+
'react-modern/no-component-will-mount': [2],
|
|
59
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
60
|
+
'react-modern/no-component-will-update': [2],
|
|
61
|
+
'react-modern/no-context-provider': [1],
|
|
62
|
+
'react-modern/no-create-ref': [2],
|
|
63
|
+
'react/no-direct-mutation-state': [2],
|
|
64
|
+
'react-modern/no-forward-ref': [1],
|
|
65
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
66
|
+
'react-modern/no-missing-key': [2],
|
|
67
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
68
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
69
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
70
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
71
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
72
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
73
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
74
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
75
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
76
|
+
'react-modern/no-unstable-context-value': [2],
|
|
77
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
78
|
+
'react-modern/no-use-context': [1],
|
|
79
|
+
'react-modern/rsc-function-definition': [2],
|
|
80
|
+
'react-modern/use-state': [
|
|
81
|
+
2,
|
|
82
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
83
|
+
],
|
|
84
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
85
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
86
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
87
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
88
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
89
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
26
90
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
27
91
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
28
92
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -37,7 +101,7 @@ export default {
|
|
|
37
101
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
38
102
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
39
103
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
40
|
-
'stylistic-js/jsx-
|
|
104
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
41
105
|
'stylistic-js/jsx-tag-spacing': [
|
|
42
106
|
2,
|
|
43
107
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -60,6 +124,7 @@ export default {
|
|
|
60
124
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
61
125
|
'typescript/adjacent-overload-signatures': [2],
|
|
62
126
|
'typescript-js/array-type': [2],
|
|
127
|
+
'typescript/await-thenable': [2],
|
|
63
128
|
'typescript/ban-ts-comment': [
|
|
64
129
|
2,
|
|
65
130
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -78,14 +143,18 @@ export default {
|
|
|
78
143
|
'typescript/no-empty-object-type': [2],
|
|
79
144
|
'typescript/no-explicit-any': [2],
|
|
80
145
|
'typescript/no-extra-non-null-assertion': [2],
|
|
146
|
+
'typescript/no-floating-promises': [2],
|
|
81
147
|
'typescript/no-inferrable-types': [2],
|
|
82
148
|
'typescript/no-misused-new': [2],
|
|
149
|
+
'typescript/no-misused-promises': [2],
|
|
83
150
|
'typescript/no-namespace': [2],
|
|
84
151
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
85
152
|
'typescript/no-require-imports': [2],
|
|
86
153
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
87
154
|
'typescript/no-this-alias': [2],
|
|
155
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
88
156
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
157
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
89
158
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
90
159
|
'typescript/no-unsafe-function-type': [2],
|
|
91
160
|
'eslint/no-unused-expressions': [
|
|
@@ -98,6 +167,7 @@ export default {
|
|
|
98
167
|
'typescript/prefer-for-of': [2],
|
|
99
168
|
'typescript/prefer-function-type': [2],
|
|
100
169
|
'typescript/prefer-namespace-keyword': [2],
|
|
170
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
101
171
|
'typescript/switch-exhaustiveness-check': [2],
|
|
102
172
|
'typescript/triple-slash-reference': [2],
|
|
103
173
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -106,6 +176,7 @@ export default {
|
|
|
106
176
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
107
177
|
],
|
|
108
178
|
'eslint/constructor-super': [2],
|
|
179
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
109
180
|
'eslint/for-direction': [2],
|
|
110
181
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
111
182
|
'import/default': [2],
|
|
@@ -117,20 +188,7 @@ export default {
|
|
|
117
188
|
'import/no-named-as-default': [1],
|
|
118
189
|
'import/no-named-as-default-member': [1],
|
|
119
190
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
120
|
-
'
|
|
121
|
-
2,
|
|
122
|
-
{
|
|
123
|
-
'newlines-between': 'always',
|
|
124
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
125
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
126
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
127
|
-
distinctGroup: true,
|
|
128
|
-
sortTypesGroup: false,
|
|
129
|
-
named: false,
|
|
130
|
-
warnOnUnassignedImports: false,
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
'eslint-js/newline-before-return': [2],
|
|
191
|
+
'eslint/max-depth': [1, 4],
|
|
134
192
|
'eslint/no-async-promise-executor': [2],
|
|
135
193
|
'eslint/no-case-declarations': [2],
|
|
136
194
|
'eslint/no-class-assign': [2],
|
|
@@ -148,6 +206,7 @@ export default {
|
|
|
148
206
|
'eslint/no-dupe-else-if': [2],
|
|
149
207
|
'eslint/no-dupe-keys': [2],
|
|
150
208
|
'eslint/no-duplicate-case': [2],
|
|
209
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
151
210
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
152
211
|
'eslint/no-empty-character-class': [2],
|
|
153
212
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -224,45 +283,10 @@ export default {
|
|
|
224
283
|
'react/static-components': [2],
|
|
225
284
|
'react/unsupported-syntax': [1],
|
|
226
285
|
'react/use-memo': [2],
|
|
227
|
-
'react-js/boolean-prop-naming': [2],
|
|
228
|
-
'react/button-has-type': [2],
|
|
229
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
230
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
231
|
-
'react-js/destructuring-assignment': [2],
|
|
232
|
-
'react/display-name': [2],
|
|
233
|
-
'react/function-component-definition': [
|
|
234
|
-
2,
|
|
235
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
236
|
-
],
|
|
237
|
-
'react/hook-use-state': [2],
|
|
238
|
-
'react/jsx-boolean-value': [2],
|
|
239
|
-
'react/jsx-fragments': [2],
|
|
240
|
-
'react/jsx-handler-names': [2],
|
|
241
|
-
'react/jsx-key': [2],
|
|
242
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
243
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
244
|
-
'react/jsx-no-duplicate-props': [2],
|
|
245
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
246
|
-
'react/jsx-no-target-blank': [2],
|
|
247
|
-
'react/jsx-no-undef': [2],
|
|
248
|
-
'react/jsx-no-useless-fragment': [2],
|
|
249
|
-
'react/no-children-prop': [2],
|
|
250
|
-
'react/no-danger-with-children': [2],
|
|
251
|
-
'react-js/no-deprecated': [2],
|
|
252
|
-
'react/no-direct-mutation-state': [2],
|
|
253
|
-
'react/no-find-dom-node': [2],
|
|
254
|
-
'react/no-is-mounted': [2],
|
|
255
|
-
'react/no-multi-comp': [2],
|
|
256
|
-
'react/no-render-return-value': [2],
|
|
257
|
-
'react/no-string-refs': [2],
|
|
258
|
-
'react/no-unescaped-entities': [2],
|
|
259
|
-
'react/no-unknown-property': [2],
|
|
260
|
-
'react-js/prop-types': [2],
|
|
261
|
-
'react/require-render-return': [2],
|
|
262
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
263
286
|
'eslint/require-yield': [2],
|
|
264
287
|
'sonarjs/assertions-in-test-cases': [2],
|
|
265
288
|
'sonarjs/async-test-assertions': [2],
|
|
289
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
266
290
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
267
291
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
268
292
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -325,14 +349,17 @@ export default {
|
|
|
325
349
|
'sonarjs/no-clear-text-protocols': [2],
|
|
326
350
|
'sonarjs/no-code-after-done': [2],
|
|
327
351
|
'sonarjs/no-dead-store': [2],
|
|
352
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
328
353
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
329
354
|
'sonarjs/no-default-utility-imports': [2],
|
|
330
355
|
'sonarjs/no-delete-var': [2],
|
|
331
356
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
357
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
332
358
|
'sonarjs/no-duplicate-test-title': [2],
|
|
333
359
|
'sonarjs/no-duplicated-branches': [2],
|
|
334
360
|
'sonarjs/no-element-overwrite': [2],
|
|
335
361
|
'sonarjs/no-empty-collection': [2],
|
|
362
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
336
363
|
'sonarjs/no-empty-test-file': [2],
|
|
337
364
|
'sonarjs/no-empty-test-title': [2],
|
|
338
365
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -365,10 +392,10 @@ export default {
|
|
|
365
392
|
'sonarjs/no-labels': [2],
|
|
366
393
|
'sonarjs/no-literal-call': [2],
|
|
367
394
|
'sonarjs/no-mime-sniff': [2],
|
|
368
|
-
'sonarjs/no-
|
|
395
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
369
396
|
'sonarjs/no-nested-assignment': [2],
|
|
370
397
|
'sonarjs/no-nested-conditional': [2],
|
|
371
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
398
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
372
399
|
'sonarjs/no-nested-template-literals': [2],
|
|
373
400
|
'sonarjs/no-os-command-from-path': [2],
|
|
374
401
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -392,12 +419,17 @@ export default {
|
|
|
392
419
|
'sonarjs/no-useless-catch': [2],
|
|
393
420
|
'sonarjs/no-useless-increment': [2],
|
|
394
421
|
'sonarjs/no-useless-react-setstate': [2],
|
|
422
|
+
'sonarjs/no-vue-class-component': [2],
|
|
423
|
+
'sonarjs/no-vue-mixins': [2],
|
|
395
424
|
'sonarjs/no-weak-cipher': [2],
|
|
396
425
|
'sonarjs/no-weak-keys': [2],
|
|
397
426
|
'sonarjs/non-existent-operator': [2],
|
|
398
427
|
'sonarjs/object-alt-content': [2],
|
|
399
428
|
'sonarjs/parameterized-tests': [2],
|
|
429
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
400
430
|
'sonarjs/prefer-default-last': [2],
|
|
431
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
432
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
401
433
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
402
434
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
403
435
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -420,12 +452,15 @@ export default {
|
|
|
420
452
|
'sonarjs/table-header': [2],
|
|
421
453
|
'sonarjs/table-header-reference': [2],
|
|
422
454
|
'sonarjs/test-check-exception': [2],
|
|
455
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
456
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
423
457
|
'sonarjs/todo-tag': [1],
|
|
424
458
|
'sonarjs/unverified-certificate': [2],
|
|
425
459
|
'sonarjs/unverified-hostname': [2],
|
|
426
460
|
'sonarjs/updated-const-var': [2],
|
|
427
461
|
'sonarjs/updated-loop-counter': [2],
|
|
428
462
|
'sonarjs/use-type-alias': [2],
|
|
463
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
429
464
|
'sonarjs/weak-ssl': [2],
|
|
430
465
|
'sonarjs/x-powered-by': [2],
|
|
431
466
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -473,7 +508,6 @@ export default {
|
|
|
473
508
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
474
509
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
475
510
|
'unicorn/consistent-date-clone': [2],
|
|
476
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
477
511
|
'unicorn/consistent-empty-array-spread': [2],
|
|
478
512
|
'unicorn/consistent-existence-index-check': [2],
|
|
479
513
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -508,22 +542,6 @@ export default {
|
|
|
508
542
|
],
|
|
509
543
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
510
544
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
511
|
-
'unicorn-js/name-replacements': [
|
|
512
|
-
2,
|
|
513
|
-
{
|
|
514
|
-
replacements: {
|
|
515
|
-
dev: false,
|
|
516
|
-
prod: false,
|
|
517
|
-
props: false,
|
|
518
|
-
ref: false,
|
|
519
|
-
refs: false,
|
|
520
|
-
args: false,
|
|
521
|
-
params: false,
|
|
522
|
-
utils: false,
|
|
523
|
-
env: false,
|
|
524
|
-
},
|
|
525
|
-
},
|
|
526
|
-
],
|
|
527
545
|
'unicorn/new-for-builtins': [2],
|
|
528
546
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
529
547
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -632,7 +650,6 @@ export default {
|
|
|
632
650
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
633
651
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
634
652
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
635
|
-
'unicorn-js/no-unused-properties': [2],
|
|
636
653
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
637
654
|
'unicorn-js/no-useless-coercion': [2],
|
|
638
655
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -887,8 +904,71 @@ export default {
|
|
|
887
904
|
WeakSet: 'readonly',
|
|
888
905
|
},
|
|
889
906
|
},
|
|
890
|
-
|
|
907
|
+
ea64b8c139f711e0: {
|
|
891
908
|
rules: {
|
|
909
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
910
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
911
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
912
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
913
|
+
'react-modern/dom-no-hydrate': [2],
|
|
914
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
915
|
+
'react-modern/dom-no-render': [2],
|
|
916
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
917
|
+
'react-modern/dom-no-script-url': [1],
|
|
918
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
919
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
920
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
921
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
922
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
923
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
924
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
925
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
926
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
927
|
+
'react-modern/jsx-no-namespace': [2],
|
|
928
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
929
|
+
'react-modern/naming-convention-context-name': [1],
|
|
930
|
+
'react-modern/naming-convention-id-name': [1],
|
|
931
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
932
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
933
|
+
'react/no-array-index-key': [1],
|
|
934
|
+
'react-modern/no-children-count': [1],
|
|
935
|
+
'react-modern/no-children-for-each': [1],
|
|
936
|
+
'react-modern/no-children-map': [1],
|
|
937
|
+
'react-modern/no-children-only': [1],
|
|
938
|
+
'react-modern/no-children-to-array': [1],
|
|
939
|
+
'react/no-clone-element': [1],
|
|
940
|
+
'react-modern/no-component-will-mount': [2],
|
|
941
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
942
|
+
'react-modern/no-component-will-update': [2],
|
|
943
|
+
'react-modern/no-context-provider': [1],
|
|
944
|
+
'react-modern/no-create-ref': [2],
|
|
945
|
+
'react/no-direct-mutation-state': [2],
|
|
946
|
+
'react-modern/no-forward-ref': [1],
|
|
947
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
948
|
+
'react-modern/no-missing-key': [2],
|
|
949
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
950
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
951
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
952
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
953
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
954
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
955
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
956
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
957
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
958
|
+
'react-modern/no-unstable-context-value': [2],
|
|
959
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
960
|
+
'react-modern/no-use-context': [1],
|
|
961
|
+
'react-modern/rsc-function-definition': [2],
|
|
962
|
+
'react-modern/use-state': [
|
|
963
|
+
2,
|
|
964
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
965
|
+
],
|
|
966
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
967
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
968
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
969
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
970
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
971
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
892
972
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
893
973
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
894
974
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -903,7 +983,7 @@ export default {
|
|
|
903
983
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
904
984
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
905
985
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
906
|
-
'stylistic-js/jsx-
|
|
986
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
907
987
|
'stylistic-js/jsx-tag-spacing': [
|
|
908
988
|
2,
|
|
909
989
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -926,6 +1006,7 @@ export default {
|
|
|
926
1006
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
927
1007
|
'typescript/adjacent-overload-signatures': [2],
|
|
928
1008
|
'typescript-js/array-type': [2],
|
|
1009
|
+
'typescript/await-thenable': [2],
|
|
929
1010
|
'typescript/ban-ts-comment': [
|
|
930
1011
|
2,
|
|
931
1012
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -944,14 +1025,18 @@ export default {
|
|
|
944
1025
|
'typescript/no-empty-object-type': [2],
|
|
945
1026
|
'typescript/no-explicit-any': [2],
|
|
946
1027
|
'typescript/no-extra-non-null-assertion': [2],
|
|
1028
|
+
'typescript/no-floating-promises': [2],
|
|
947
1029
|
'typescript/no-inferrable-types': [2],
|
|
948
1030
|
'typescript/no-misused-new': [2],
|
|
1031
|
+
'typescript/no-misused-promises': [2],
|
|
949
1032
|
'typescript/no-namespace': [2],
|
|
950
1033
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
951
1034
|
'typescript/no-require-imports': [2],
|
|
952
1035
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
953
1036
|
'typescript/no-this-alias': [2],
|
|
1037
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
954
1038
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
1039
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
955
1040
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
956
1041
|
'typescript/no-unsafe-function-type': [2],
|
|
957
1042
|
'eslint/no-unused-expressions': [
|
|
@@ -964,6 +1049,7 @@ export default {
|
|
|
964
1049
|
'typescript/prefer-for-of': [2],
|
|
965
1050
|
'typescript/prefer-function-type': [2],
|
|
966
1051
|
'typescript/prefer-namespace-keyword': [2],
|
|
1052
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
967
1053
|
'typescript/switch-exhaustiveness-check': [2],
|
|
968
1054
|
'typescript/triple-slash-reference': [2],
|
|
969
1055
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -972,6 +1058,7 @@ export default {
|
|
|
972
1058
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
973
1059
|
],
|
|
974
1060
|
'eslint/constructor-super': 'off',
|
|
1061
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
975
1062
|
'eslint/for-direction': [2],
|
|
976
1063
|
'eslint/getter-return': 'off',
|
|
977
1064
|
'import/default': [2],
|
|
@@ -983,20 +1070,7 @@ export default {
|
|
|
983
1070
|
'import/no-named-as-default': [1],
|
|
984
1071
|
'import/no-named-as-default-member': [1],
|
|
985
1072
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
986
|
-
'
|
|
987
|
-
2,
|
|
988
|
-
{
|
|
989
|
-
'newlines-between': 'always',
|
|
990
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
991
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
992
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
993
|
-
distinctGroup: true,
|
|
994
|
-
sortTypesGroup: false,
|
|
995
|
-
named: false,
|
|
996
|
-
warnOnUnassignedImports: false,
|
|
997
|
-
},
|
|
998
|
-
],
|
|
999
|
-
'eslint-js/newline-before-return': [2],
|
|
1073
|
+
'eslint/max-depth': [1, 4],
|
|
1000
1074
|
'eslint/no-async-promise-executor': [2],
|
|
1001
1075
|
'eslint/no-case-declarations': [2],
|
|
1002
1076
|
'eslint/no-class-assign': 'off',
|
|
@@ -1014,6 +1088,7 @@ export default {
|
|
|
1014
1088
|
'eslint/no-dupe-else-if': [2],
|
|
1015
1089
|
'eslint/no-dupe-keys': 'off',
|
|
1016
1090
|
'eslint/no-duplicate-case': [2],
|
|
1091
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
1017
1092
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
1018
1093
|
'eslint/no-empty-character-class': [2],
|
|
1019
1094
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -1090,45 +1165,10 @@ export default {
|
|
|
1090
1165
|
'react/static-components': [2],
|
|
1091
1166
|
'react/unsupported-syntax': [1],
|
|
1092
1167
|
'react/use-memo': [2],
|
|
1093
|
-
'react-js/boolean-prop-naming': [2],
|
|
1094
|
-
'react/button-has-type': [2],
|
|
1095
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1096
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1097
|
-
'react-js/destructuring-assignment': [2],
|
|
1098
|
-
'react/display-name': [2],
|
|
1099
|
-
'react/function-component-definition': [
|
|
1100
|
-
2,
|
|
1101
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1102
|
-
],
|
|
1103
|
-
'react/hook-use-state': [2],
|
|
1104
|
-
'react/jsx-boolean-value': [2],
|
|
1105
|
-
'react/jsx-fragments': [2],
|
|
1106
|
-
'react/jsx-handler-names': [2],
|
|
1107
|
-
'react/jsx-key': [2],
|
|
1108
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1109
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1110
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1111
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1112
|
-
'react/jsx-no-target-blank': [2],
|
|
1113
|
-
'react/jsx-no-undef': [2],
|
|
1114
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1115
|
-
'react/no-children-prop': [2],
|
|
1116
|
-
'react/no-danger-with-children': [2],
|
|
1117
|
-
'react-js/no-deprecated': [2],
|
|
1118
|
-
'react/no-direct-mutation-state': [2],
|
|
1119
|
-
'react/no-find-dom-node': [2],
|
|
1120
|
-
'react/no-is-mounted': [2],
|
|
1121
|
-
'react/no-multi-comp': [2],
|
|
1122
|
-
'react/no-render-return-value': [2],
|
|
1123
|
-
'react/no-string-refs': [2],
|
|
1124
|
-
'react/no-unescaped-entities': [2],
|
|
1125
|
-
'react/no-unknown-property': [2],
|
|
1126
|
-
'react-js/prop-types': [2],
|
|
1127
|
-
'react/require-render-return': [2],
|
|
1128
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1129
1168
|
'eslint/require-yield': [2],
|
|
1130
1169
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1131
1170
|
'sonarjs/async-test-assertions': [2],
|
|
1171
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1132
1172
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1133
1173
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
1134
1174
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1191,14 +1231,17 @@ export default {
|
|
|
1191
1231
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1192
1232
|
'sonarjs/no-code-after-done': [2],
|
|
1193
1233
|
'sonarjs/no-dead-store': [2],
|
|
1234
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1194
1235
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1195
1236
|
'sonarjs/no-default-utility-imports': [2],
|
|
1196
1237
|
'sonarjs/no-delete-var': [2],
|
|
1197
1238
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1239
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1198
1240
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1199
1241
|
'sonarjs/no-duplicated-branches': [2],
|
|
1200
1242
|
'sonarjs/no-element-overwrite': [2],
|
|
1201
1243
|
'sonarjs/no-empty-collection': [2],
|
|
1244
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1202
1245
|
'sonarjs/no-empty-test-file': [2],
|
|
1203
1246
|
'sonarjs/no-empty-test-title': [2],
|
|
1204
1247
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1231,10 +1274,10 @@ export default {
|
|
|
1231
1274
|
'sonarjs/no-labels': [2],
|
|
1232
1275
|
'sonarjs/no-literal-call': [2],
|
|
1233
1276
|
'sonarjs/no-mime-sniff': [2],
|
|
1234
|
-
'sonarjs/no-
|
|
1277
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1235
1278
|
'sonarjs/no-nested-assignment': [2],
|
|
1236
1279
|
'sonarjs/no-nested-conditional': [2],
|
|
1237
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1280
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1238
1281
|
'sonarjs/no-nested-template-literals': [2],
|
|
1239
1282
|
'sonarjs/no-os-command-from-path': [2],
|
|
1240
1283
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1258,12 +1301,17 @@ export default {
|
|
|
1258
1301
|
'sonarjs/no-useless-catch': [2],
|
|
1259
1302
|
'sonarjs/no-useless-increment': [2],
|
|
1260
1303
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1304
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1305
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1261
1306
|
'sonarjs/no-weak-cipher': [2],
|
|
1262
1307
|
'sonarjs/no-weak-keys': [2],
|
|
1263
1308
|
'sonarjs/non-existent-operator': [2],
|
|
1264
1309
|
'sonarjs/object-alt-content': [2],
|
|
1265
1310
|
'sonarjs/parameterized-tests': [2],
|
|
1311
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1266
1312
|
'sonarjs/prefer-default-last': [2],
|
|
1313
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1314
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1267
1315
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1268
1316
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1269
1317
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -1286,12 +1334,15 @@ export default {
|
|
|
1286
1334
|
'sonarjs/table-header': [2],
|
|
1287
1335
|
'sonarjs/table-header-reference': [2],
|
|
1288
1336
|
'sonarjs/test-check-exception': [2],
|
|
1337
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1338
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1289
1339
|
'sonarjs/todo-tag': [1],
|
|
1290
1340
|
'sonarjs/unverified-certificate': [2],
|
|
1291
1341
|
'sonarjs/unverified-hostname': [2],
|
|
1292
1342
|
'sonarjs/updated-const-var': [2],
|
|
1293
1343
|
'sonarjs/updated-loop-counter': [2],
|
|
1294
1344
|
'sonarjs/use-type-alias': [2],
|
|
1345
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1295
1346
|
'sonarjs/weak-ssl': [2],
|
|
1296
1347
|
'sonarjs/x-powered-by': [2],
|
|
1297
1348
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1339,7 +1390,6 @@ export default {
|
|
|
1339
1390
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
1340
1391
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
1341
1392
|
'unicorn/consistent-date-clone': [2],
|
|
1342
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
1343
1393
|
'unicorn/consistent-empty-array-spread': [2],
|
|
1344
1394
|
'unicorn/consistent-existence-index-check': [2],
|
|
1345
1395
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -1374,22 +1424,6 @@ export default {
|
|
|
1374
1424
|
],
|
|
1375
1425
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
1376
1426
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
1377
|
-
'unicorn-js/name-replacements': [
|
|
1378
|
-
2,
|
|
1379
|
-
{
|
|
1380
|
-
replacements: {
|
|
1381
|
-
dev: false,
|
|
1382
|
-
prod: false,
|
|
1383
|
-
props: false,
|
|
1384
|
-
ref: false,
|
|
1385
|
-
refs: false,
|
|
1386
|
-
args: false,
|
|
1387
|
-
params: false,
|
|
1388
|
-
utils: false,
|
|
1389
|
-
env: false,
|
|
1390
|
-
},
|
|
1391
|
-
},
|
|
1392
|
-
],
|
|
1393
1427
|
'unicorn/new-for-builtins': [2],
|
|
1394
1428
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
1395
1429
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -1498,7 +1532,6 @@ export default {
|
|
|
1498
1532
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
1499
1533
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
1500
1534
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
1501
|
-
'unicorn-js/no-unused-properties': [2],
|
|
1502
1535
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
1503
1536
|
'unicorn-js/no-useless-coercion': [2],
|
|
1504
1537
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -1753,8 +1786,71 @@ export default {
|
|
|
1753
1786
|
WeakSet: 'readonly',
|
|
1754
1787
|
},
|
|
1755
1788
|
},
|
|
1756
|
-
|
|
1789
|
+
bab56d04662bfdea: {
|
|
1757
1790
|
rules: {
|
|
1791
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
1792
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
1793
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
1794
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
1795
|
+
'react-modern/dom-no-hydrate': [2],
|
|
1796
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
1797
|
+
'react-modern/dom-no-render': [2],
|
|
1798
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
1799
|
+
'react-modern/dom-no-script-url': [1],
|
|
1800
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
1801
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
1802
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
1803
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
1804
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
1805
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
1806
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
1807
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
1808
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
1809
|
+
'react-modern/jsx-no-namespace': [2],
|
|
1810
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
1811
|
+
'react-modern/naming-convention-context-name': [1],
|
|
1812
|
+
'react-modern/naming-convention-id-name': [1],
|
|
1813
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
1814
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
1815
|
+
'react/no-array-index-key': [1],
|
|
1816
|
+
'react-modern/no-children-count': [1],
|
|
1817
|
+
'react-modern/no-children-for-each': [1],
|
|
1818
|
+
'react-modern/no-children-map': [1],
|
|
1819
|
+
'react-modern/no-children-only': [1],
|
|
1820
|
+
'react-modern/no-children-to-array': [1],
|
|
1821
|
+
'react/no-clone-element': [1],
|
|
1822
|
+
'react-modern/no-component-will-mount': [2],
|
|
1823
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
1824
|
+
'react-modern/no-component-will-update': [2],
|
|
1825
|
+
'react-modern/no-context-provider': [1],
|
|
1826
|
+
'react-modern/no-create-ref': [2],
|
|
1827
|
+
'react/no-direct-mutation-state': [2],
|
|
1828
|
+
'react-modern/no-forward-ref': [1],
|
|
1829
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
1830
|
+
'react-modern/no-missing-key': [2],
|
|
1831
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
1832
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
1833
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
1834
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
1835
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
1836
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
1837
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
1838
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
1839
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
1840
|
+
'react-modern/no-unstable-context-value': [2],
|
|
1841
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
1842
|
+
'react-modern/no-use-context': [1],
|
|
1843
|
+
'react-modern/rsc-function-definition': [2],
|
|
1844
|
+
'react-modern/use-state': [
|
|
1845
|
+
2,
|
|
1846
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
1847
|
+
],
|
|
1848
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
1849
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
1850
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
1851
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
1852
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
1853
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
1758
1854
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
1759
1855
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
1760
1856
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -1769,7 +1865,7 @@ export default {
|
|
|
1769
1865
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
1770
1866
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
1771
1867
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
1772
|
-
'stylistic-js/jsx-
|
|
1868
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
1773
1869
|
'stylistic-js/jsx-tag-spacing': [
|
|
1774
1870
|
2,
|
|
1775
1871
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1792,6 +1888,7 @@ export default {
|
|
|
1792
1888
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
1793
1889
|
'typescript/adjacent-overload-signatures': [2],
|
|
1794
1890
|
'typescript-js/array-type': [2],
|
|
1891
|
+
'typescript/await-thenable': 'off',
|
|
1795
1892
|
'typescript/ban-ts-comment': [
|
|
1796
1893
|
2,
|
|
1797
1894
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -1810,14 +1907,18 @@ export default {
|
|
|
1810
1907
|
'typescript/no-empty-object-type': [2],
|
|
1811
1908
|
'typescript/no-explicit-any': [2],
|
|
1812
1909
|
'typescript/no-extra-non-null-assertion': [2],
|
|
1910
|
+
'typescript/no-floating-promises': 'off',
|
|
1813
1911
|
'typescript/no-inferrable-types': [2],
|
|
1814
1912
|
'typescript/no-misused-new': [2],
|
|
1913
|
+
'typescript/no-misused-promises': 'off',
|
|
1815
1914
|
'typescript/no-namespace': [2],
|
|
1816
1915
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
1817
1916
|
'typescript/no-require-imports': [2],
|
|
1818
1917
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
1819
1918
|
'typescript/no-this-alias': [2],
|
|
1919
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
1820
1920
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
1921
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
1821
1922
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
1822
1923
|
'typescript/no-unsafe-function-type': [2],
|
|
1823
1924
|
'eslint/no-unused-expressions': [
|
|
@@ -1830,6 +1931,7 @@ export default {
|
|
|
1830
1931
|
'typescript/prefer-for-of': [2],
|
|
1831
1932
|
'typescript/prefer-function-type': [2],
|
|
1832
1933
|
'typescript/prefer-namespace-keyword': [2],
|
|
1934
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
1833
1935
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
1834
1936
|
'typescript/triple-slash-reference': [2],
|
|
1835
1937
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -1838,6 +1940,7 @@ export default {
|
|
|
1838
1940
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
1839
1941
|
],
|
|
1840
1942
|
'eslint/constructor-super': [2],
|
|
1943
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
1841
1944
|
'eslint/for-direction': [2],
|
|
1842
1945
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
1843
1946
|
'import/default': [2],
|
|
@@ -1849,20 +1952,7 @@ export default {
|
|
|
1849
1952
|
'import/no-named-as-default': [1],
|
|
1850
1953
|
'import/no-named-as-default-member': [1],
|
|
1851
1954
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
1852
|
-
'
|
|
1853
|
-
2,
|
|
1854
|
-
{
|
|
1855
|
-
'newlines-between': 'always',
|
|
1856
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
1857
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
1858
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
1859
|
-
distinctGroup: true,
|
|
1860
|
-
sortTypesGroup: false,
|
|
1861
|
-
named: false,
|
|
1862
|
-
warnOnUnassignedImports: false,
|
|
1863
|
-
},
|
|
1864
|
-
],
|
|
1865
|
-
'eslint-js/newline-before-return': [2],
|
|
1955
|
+
'eslint/max-depth': [1, 4],
|
|
1866
1956
|
'eslint/no-async-promise-executor': [2],
|
|
1867
1957
|
'eslint/no-case-declarations': [2],
|
|
1868
1958
|
'eslint/no-class-assign': [2],
|
|
@@ -1880,6 +1970,7 @@ export default {
|
|
|
1880
1970
|
'eslint/no-dupe-else-if': [2],
|
|
1881
1971
|
'eslint/no-dupe-keys': [2],
|
|
1882
1972
|
'eslint/no-duplicate-case': [2],
|
|
1973
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
1883
1974
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
1884
1975
|
'eslint/no-empty-character-class': [2],
|
|
1885
1976
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -1956,45 +2047,10 @@ export default {
|
|
|
1956
2047
|
'react/static-components': [2],
|
|
1957
2048
|
'react/unsupported-syntax': [1],
|
|
1958
2049
|
'react/use-memo': [2],
|
|
1959
|
-
'react-js/boolean-prop-naming': [2],
|
|
1960
|
-
'react/button-has-type': [2],
|
|
1961
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1962
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1963
|
-
'react-js/destructuring-assignment': [2],
|
|
1964
|
-
'react/display-name': [2],
|
|
1965
|
-
'react/function-component-definition': [
|
|
1966
|
-
2,
|
|
1967
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1968
|
-
],
|
|
1969
|
-
'react/hook-use-state': [2],
|
|
1970
|
-
'react/jsx-boolean-value': [2],
|
|
1971
|
-
'react/jsx-fragments': [2],
|
|
1972
|
-
'react/jsx-handler-names': [2],
|
|
1973
|
-
'react/jsx-key': [2],
|
|
1974
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1975
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1976
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1977
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1978
|
-
'react/jsx-no-target-blank': [2],
|
|
1979
|
-
'react/jsx-no-undef': [2],
|
|
1980
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1981
|
-
'react/no-children-prop': [2],
|
|
1982
|
-
'react/no-danger-with-children': [2],
|
|
1983
|
-
'react-js/no-deprecated': [2],
|
|
1984
|
-
'react/no-direct-mutation-state': [2],
|
|
1985
|
-
'react/no-find-dom-node': [2],
|
|
1986
|
-
'react/no-is-mounted': [2],
|
|
1987
|
-
'react/no-multi-comp': [2],
|
|
1988
|
-
'react/no-render-return-value': [2],
|
|
1989
|
-
'react/no-string-refs': [2],
|
|
1990
|
-
'react/no-unescaped-entities': [2],
|
|
1991
|
-
'react/no-unknown-property': [2],
|
|
1992
|
-
'react-js/prop-types': [2],
|
|
1993
|
-
'react/require-render-return': [2],
|
|
1994
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1995
2050
|
'eslint/require-yield': [2],
|
|
1996
2051
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1997
2052
|
'sonarjs/async-test-assertions': [2],
|
|
2053
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1998
2054
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1999
2055
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2000
2056
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2057,14 +2113,17 @@ export default {
|
|
|
2057
2113
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2058
2114
|
'sonarjs/no-code-after-done': [2],
|
|
2059
2115
|
'sonarjs/no-dead-store': [2],
|
|
2116
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2060
2117
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2061
2118
|
'sonarjs/no-default-utility-imports': [2],
|
|
2062
2119
|
'sonarjs/no-delete-var': [2],
|
|
2063
2120
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
2121
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2064
2122
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2065
2123
|
'sonarjs/no-duplicated-branches': [2],
|
|
2066
2124
|
'sonarjs/no-element-overwrite': [2],
|
|
2067
2125
|
'sonarjs/no-empty-collection': [2],
|
|
2126
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2068
2127
|
'sonarjs/no-empty-test-file': [2],
|
|
2069
2128
|
'sonarjs/no-empty-test-title': [2],
|
|
2070
2129
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2097,10 +2156,10 @@ export default {
|
|
|
2097
2156
|
'sonarjs/no-labels': [2],
|
|
2098
2157
|
'sonarjs/no-literal-call': [2],
|
|
2099
2158
|
'sonarjs/no-mime-sniff': [2],
|
|
2100
|
-
'sonarjs/no-
|
|
2159
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2101
2160
|
'sonarjs/no-nested-assignment': [2],
|
|
2102
2161
|
'sonarjs/no-nested-conditional': [2],
|
|
2103
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
2162
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2104
2163
|
'sonarjs/no-nested-template-literals': [2],
|
|
2105
2164
|
'sonarjs/no-os-command-from-path': [2],
|
|
2106
2165
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2124,12 +2183,17 @@ export default {
|
|
|
2124
2183
|
'sonarjs/no-useless-catch': [2],
|
|
2125
2184
|
'sonarjs/no-useless-increment': [2],
|
|
2126
2185
|
'sonarjs/no-useless-react-setstate': [2],
|
|
2186
|
+
'sonarjs/no-vue-class-component': [2],
|
|
2187
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2127
2188
|
'sonarjs/no-weak-cipher': [2],
|
|
2128
2189
|
'sonarjs/no-weak-keys': [2],
|
|
2129
2190
|
'sonarjs/non-existent-operator': [2],
|
|
2130
2191
|
'sonarjs/object-alt-content': [2],
|
|
2131
2192
|
'sonarjs/parameterized-tests': [2],
|
|
2193
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2132
2194
|
'sonarjs/prefer-default-last': [2],
|
|
2195
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
2196
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2133
2197
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2134
2198
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2135
2199
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -2152,12 +2216,15 @@ export default {
|
|
|
2152
2216
|
'sonarjs/table-header': [2],
|
|
2153
2217
|
'sonarjs/table-header-reference': [2],
|
|
2154
2218
|
'sonarjs/test-check-exception': [2],
|
|
2219
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
2220
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
2155
2221
|
'sonarjs/todo-tag': [1],
|
|
2156
2222
|
'sonarjs/unverified-certificate': [2],
|
|
2157
2223
|
'sonarjs/unverified-hostname': [2],
|
|
2158
2224
|
'sonarjs/updated-const-var': [2],
|
|
2159
2225
|
'sonarjs/updated-loop-counter': [2],
|
|
2160
2226
|
'sonarjs/use-type-alias': [2],
|
|
2227
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
2161
2228
|
'sonarjs/weak-ssl': [2],
|
|
2162
2229
|
'sonarjs/x-powered-by': [2],
|
|
2163
2230
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -2205,7 +2272,6 @@ export default {
|
|
|
2205
2272
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
2206
2273
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
2207
2274
|
'unicorn/consistent-date-clone': [2],
|
|
2208
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
2209
2275
|
'unicorn/consistent-empty-array-spread': [2],
|
|
2210
2276
|
'unicorn/consistent-existence-index-check': [2],
|
|
2211
2277
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -2240,22 +2306,6 @@ export default {
|
|
|
2240
2306
|
],
|
|
2241
2307
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
2242
2308
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
2243
|
-
'unicorn-js/name-replacements': [
|
|
2244
|
-
2,
|
|
2245
|
-
{
|
|
2246
|
-
replacements: {
|
|
2247
|
-
dev: false,
|
|
2248
|
-
prod: false,
|
|
2249
|
-
props: false,
|
|
2250
|
-
ref: false,
|
|
2251
|
-
refs: false,
|
|
2252
|
-
args: false,
|
|
2253
|
-
params: false,
|
|
2254
|
-
utils: false,
|
|
2255
|
-
env: false,
|
|
2256
|
-
},
|
|
2257
|
-
},
|
|
2258
|
-
],
|
|
2259
2309
|
'unicorn/new-for-builtins': [2],
|
|
2260
2310
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
2261
2311
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -2364,7 +2414,6 @@ export default {
|
|
|
2364
2414
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
2365
2415
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
2366
2416
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
2367
|
-
'unicorn-js/no-unused-properties': [2],
|
|
2368
2417
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
2369
2418
|
'unicorn-js/no-useless-coercion': [2],
|
|
2370
2419
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -2619,8 +2668,71 @@ export default {
|
|
|
2619
2668
|
WeakSet: 'readonly',
|
|
2620
2669
|
},
|
|
2621
2670
|
},
|
|
2622
|
-
|
|
2671
|
+
'1f34405876ffc865': {
|
|
2623
2672
|
rules: {
|
|
2673
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
2674
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
2675
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
2676
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
2677
|
+
'react-modern/dom-no-hydrate': [2],
|
|
2678
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
2679
|
+
'react-modern/dom-no-render': [2],
|
|
2680
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
2681
|
+
'react-modern/dom-no-script-url': [1],
|
|
2682
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
2683
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
2684
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
2685
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
2686
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
2687
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
2688
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
2689
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
2690
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
2691
|
+
'react-modern/jsx-no-namespace': [2],
|
|
2692
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
2693
|
+
'react-modern/naming-convention-context-name': [1],
|
|
2694
|
+
'react-modern/naming-convention-id-name': [1],
|
|
2695
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
2696
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
2697
|
+
'react/no-array-index-key': [1],
|
|
2698
|
+
'react-modern/no-children-count': [1],
|
|
2699
|
+
'react-modern/no-children-for-each': [1],
|
|
2700
|
+
'react-modern/no-children-map': [1],
|
|
2701
|
+
'react-modern/no-children-only': [1],
|
|
2702
|
+
'react-modern/no-children-to-array': [1],
|
|
2703
|
+
'react/no-clone-element': [1],
|
|
2704
|
+
'react-modern/no-component-will-mount': [2],
|
|
2705
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
2706
|
+
'react-modern/no-component-will-update': [2],
|
|
2707
|
+
'react-modern/no-context-provider': [1],
|
|
2708
|
+
'react-modern/no-create-ref': [2],
|
|
2709
|
+
'react/no-direct-mutation-state': [2],
|
|
2710
|
+
'react-modern/no-forward-ref': [1],
|
|
2711
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
2712
|
+
'react-modern/no-missing-key': [2],
|
|
2713
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
2714
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
2715
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
2716
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
2717
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
2718
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
2719
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
2720
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
2721
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
2722
|
+
'react-modern/no-unstable-context-value': [2],
|
|
2723
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
2724
|
+
'react-modern/no-use-context': [1],
|
|
2725
|
+
'react-modern/rsc-function-definition': [2],
|
|
2726
|
+
'react-modern/use-state': [
|
|
2727
|
+
2,
|
|
2728
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
2729
|
+
],
|
|
2730
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
2731
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
2732
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
2733
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
2734
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
2735
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
2624
2736
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
2625
2737
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
2626
2738
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -2635,7 +2747,7 @@ export default {
|
|
|
2635
2747
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
2636
2748
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
2637
2749
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
2638
|
-
'stylistic-js/jsx-
|
|
2750
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
2639
2751
|
'stylistic-js/jsx-tag-spacing': [
|
|
2640
2752
|
2,
|
|
2641
2753
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2658,6 +2770,7 @@ export default {
|
|
|
2658
2770
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
2659
2771
|
'typescript/adjacent-overload-signatures': [2],
|
|
2660
2772
|
'typescript-js/array-type': [2],
|
|
2773
|
+
'typescript/await-thenable': 'off',
|
|
2661
2774
|
'typescript/ban-ts-comment': [2],
|
|
2662
2775
|
'typescript/ban-tslint-comment': [2],
|
|
2663
2776
|
'typescript/class-literal-property-style': [2],
|
|
@@ -2673,14 +2786,18 @@ export default {
|
|
|
2673
2786
|
'typescript/no-empty-object-type': [2],
|
|
2674
2787
|
'typescript/no-explicit-any': [2],
|
|
2675
2788
|
'typescript/no-extra-non-null-assertion': [2],
|
|
2789
|
+
'typescript/no-floating-promises': 'off',
|
|
2676
2790
|
'typescript/no-inferrable-types': [2],
|
|
2677
2791
|
'typescript/no-misused-new': [2],
|
|
2792
|
+
'typescript/no-misused-promises': 'off',
|
|
2678
2793
|
'typescript/no-namespace': [2],
|
|
2679
2794
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
2680
2795
|
'typescript/no-require-imports': [2],
|
|
2681
2796
|
'eslint/no-shadow': 'off',
|
|
2682
2797
|
'typescript/no-this-alias': [2],
|
|
2798
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
2683
2799
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
2800
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
2684
2801
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
2685
2802
|
'typescript/no-unsafe-function-type': [2],
|
|
2686
2803
|
'eslint/no-unused-expressions': [
|
|
@@ -2693,6 +2810,7 @@ export default {
|
|
|
2693
2810
|
'typescript/prefer-for-of': [2],
|
|
2694
2811
|
'typescript/prefer-function-type': [2],
|
|
2695
2812
|
'typescript/prefer-namespace-keyword': [2],
|
|
2813
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
2696
2814
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
2697
2815
|
'typescript/triple-slash-reference': [2],
|
|
2698
2816
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -2701,6 +2819,7 @@ export default {
|
|
|
2701
2819
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
2702
2820
|
],
|
|
2703
2821
|
'eslint/constructor-super': [2],
|
|
2822
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
2704
2823
|
'eslint/for-direction': [2],
|
|
2705
2824
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
2706
2825
|
'import/default': [2],
|
|
@@ -2712,20 +2831,7 @@ export default {
|
|
|
2712
2831
|
'import/no-named-as-default': [1],
|
|
2713
2832
|
'import/no-named-as-default-member': [1],
|
|
2714
2833
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
2715
|
-
'
|
|
2716
|
-
2,
|
|
2717
|
-
{
|
|
2718
|
-
'newlines-between': 'always',
|
|
2719
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
2720
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
2721
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
2722
|
-
distinctGroup: true,
|
|
2723
|
-
sortTypesGroup: false,
|
|
2724
|
-
named: false,
|
|
2725
|
-
warnOnUnassignedImports: false,
|
|
2726
|
-
},
|
|
2727
|
-
],
|
|
2728
|
-
'eslint-js/newline-before-return': [2],
|
|
2834
|
+
'eslint/max-depth': [1, 4],
|
|
2729
2835
|
'eslint/no-async-promise-executor': [2],
|
|
2730
2836
|
'eslint/no-case-declarations': [2],
|
|
2731
2837
|
'eslint/no-class-assign': [2],
|
|
@@ -2743,6 +2849,7 @@ export default {
|
|
|
2743
2849
|
'eslint/no-dupe-else-if': [2],
|
|
2744
2850
|
'eslint/no-dupe-keys': [2],
|
|
2745
2851
|
'eslint/no-duplicate-case': [2],
|
|
2852
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
2746
2853
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
2747
2854
|
'eslint/no-empty-character-class': [2],
|
|
2748
2855
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -2819,45 +2926,10 @@ export default {
|
|
|
2819
2926
|
'react/static-components': [2],
|
|
2820
2927
|
'react/unsupported-syntax': [1],
|
|
2821
2928
|
'react/use-memo': [2],
|
|
2822
|
-
'react-js/boolean-prop-naming': [2],
|
|
2823
|
-
'react/button-has-type': [2],
|
|
2824
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
2825
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
2826
|
-
'react-js/destructuring-assignment': [2],
|
|
2827
|
-
'react/display-name': [2],
|
|
2828
|
-
'react/function-component-definition': [
|
|
2829
|
-
2,
|
|
2830
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
2831
|
-
],
|
|
2832
|
-
'react/hook-use-state': [2],
|
|
2833
|
-
'react/jsx-boolean-value': [2],
|
|
2834
|
-
'react/jsx-fragments': [2],
|
|
2835
|
-
'react/jsx-handler-names': [2],
|
|
2836
|
-
'react/jsx-key': [2],
|
|
2837
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
2838
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
2839
|
-
'react/jsx-no-duplicate-props': [2],
|
|
2840
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
2841
|
-
'react/jsx-no-target-blank': [2],
|
|
2842
|
-
'react/jsx-no-undef': [2],
|
|
2843
|
-
'react/jsx-no-useless-fragment': [2],
|
|
2844
|
-
'react/no-children-prop': [2],
|
|
2845
|
-
'react/no-danger-with-children': [2],
|
|
2846
|
-
'react-js/no-deprecated': [2],
|
|
2847
|
-
'react/no-direct-mutation-state': [2],
|
|
2848
|
-
'react/no-find-dom-node': [2],
|
|
2849
|
-
'react/no-is-mounted': [2],
|
|
2850
|
-
'react/no-multi-comp': [2],
|
|
2851
|
-
'react/no-render-return-value': [2],
|
|
2852
|
-
'react/no-string-refs': [2],
|
|
2853
|
-
'react/no-unescaped-entities': [2],
|
|
2854
|
-
'react/no-unknown-property': [2],
|
|
2855
|
-
'react-js/prop-types': [2],
|
|
2856
|
-
'react/require-render-return': [2],
|
|
2857
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
2858
2929
|
'eslint/require-yield': [2],
|
|
2859
2930
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2860
2931
|
'sonarjs/async-test-assertions': [2],
|
|
2932
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2861
2933
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2862
2934
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2863
2935
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2920,14 +2992,17 @@ export default {
|
|
|
2920
2992
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2921
2993
|
'sonarjs/no-code-after-done': [2],
|
|
2922
2994
|
'sonarjs/no-dead-store': [2],
|
|
2995
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2923
2996
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2924
2997
|
'sonarjs/no-default-utility-imports': [2],
|
|
2925
2998
|
'sonarjs/no-delete-var': [2],
|
|
2926
2999
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
3000
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2927
3001
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2928
3002
|
'sonarjs/no-duplicated-branches': [2],
|
|
2929
3003
|
'sonarjs/no-element-overwrite': [2],
|
|
2930
3004
|
'sonarjs/no-empty-collection': [2],
|
|
3005
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2931
3006
|
'sonarjs/no-empty-test-file': [2],
|
|
2932
3007
|
'sonarjs/no-empty-test-title': [2],
|
|
2933
3008
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2960,10 +3035,10 @@ export default {
|
|
|
2960
3035
|
'sonarjs/no-labels': [2],
|
|
2961
3036
|
'sonarjs/no-literal-call': [2],
|
|
2962
3037
|
'sonarjs/no-mime-sniff': [2],
|
|
2963
|
-
'sonarjs/no-
|
|
3038
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2964
3039
|
'sonarjs/no-nested-assignment': [2],
|
|
2965
3040
|
'sonarjs/no-nested-conditional': [2],
|
|
2966
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
3041
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2967
3042
|
'sonarjs/no-nested-template-literals': [2],
|
|
2968
3043
|
'sonarjs/no-os-command-from-path': [2],
|
|
2969
3044
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2987,12 +3062,17 @@ export default {
|
|
|
2987
3062
|
'sonarjs/no-useless-catch': [2],
|
|
2988
3063
|
'sonarjs/no-useless-increment': [2],
|
|
2989
3064
|
'sonarjs/no-useless-react-setstate': [2],
|
|
3065
|
+
'sonarjs/no-vue-class-component': [2],
|
|
3066
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2990
3067
|
'sonarjs/no-weak-cipher': [2],
|
|
2991
3068
|
'sonarjs/no-weak-keys': [2],
|
|
2992
3069
|
'sonarjs/non-existent-operator': [2],
|
|
2993
3070
|
'sonarjs/object-alt-content': [2],
|
|
2994
3071
|
'sonarjs/parameterized-tests': [2],
|
|
3072
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2995
3073
|
'sonarjs/prefer-default-last': [2],
|
|
3074
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
3075
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2996
3076
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2997
3077
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2998
3078
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -3015,12 +3095,15 @@ export default {
|
|
|
3015
3095
|
'sonarjs/table-header': [2],
|
|
3016
3096
|
'sonarjs/table-header-reference': [2],
|
|
3017
3097
|
'sonarjs/test-check-exception': [2],
|
|
3098
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
3099
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
3018
3100
|
'sonarjs/todo-tag': [1],
|
|
3019
3101
|
'sonarjs/unverified-certificate': [2],
|
|
3020
3102
|
'sonarjs/unverified-hostname': [2],
|
|
3021
3103
|
'sonarjs/updated-const-var': [2],
|
|
3022
3104
|
'sonarjs/updated-loop-counter': [2],
|
|
3023
3105
|
'sonarjs/use-type-alias': [2],
|
|
3106
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
3024
3107
|
'sonarjs/weak-ssl': [2],
|
|
3025
3108
|
'sonarjs/x-powered-by': [2],
|
|
3026
3109
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -3068,7 +3151,6 @@ export default {
|
|
|
3068
3151
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
3069
3152
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
3070
3153
|
'unicorn/consistent-date-clone': [2],
|
|
3071
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
3072
3154
|
'unicorn/consistent-empty-array-spread': [2],
|
|
3073
3155
|
'unicorn/consistent-existence-index-check': [2],
|
|
3074
3156
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -3103,22 +3185,6 @@ export default {
|
|
|
3103
3185
|
],
|
|
3104
3186
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
3105
3187
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
3106
|
-
'unicorn-js/name-replacements': [
|
|
3107
|
-
2,
|
|
3108
|
-
{
|
|
3109
|
-
replacements: {
|
|
3110
|
-
dev: false,
|
|
3111
|
-
prod: false,
|
|
3112
|
-
props: false,
|
|
3113
|
-
ref: false,
|
|
3114
|
-
refs: false,
|
|
3115
|
-
args: false,
|
|
3116
|
-
params: false,
|
|
3117
|
-
utils: false,
|
|
3118
|
-
env: false,
|
|
3119
|
-
},
|
|
3120
|
-
},
|
|
3121
|
-
],
|
|
3122
3188
|
'unicorn/new-for-builtins': [2],
|
|
3123
3189
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
3124
3190
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -3227,7 +3293,6 @@ export default {
|
|
|
3227
3293
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
3228
3294
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
3229
3295
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
3230
|
-
'unicorn-js/no-unused-properties': [2],
|
|
3231
3296
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
3232
3297
|
'unicorn-js/no-useless-coercion': [2],
|
|
3233
3298
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -3484,16 +3549,16 @@ export default {
|
|
|
3484
3549
|
},
|
|
3485
3550
|
},
|
|
3486
3551
|
overrides: [
|
|
3487
|
-
{ files: ['**/*.js'], profile: '
|
|
3488
|
-
{ files: ['**/*.ts'], profile: '
|
|
3489
|
-
{ files: ['**/*.cjs'], profile: '
|
|
3490
|
-
{ files: ['**/*.cts'], profile: '
|
|
3491
|
-
{ files: ['**/*.jsx', '**/*.mjs'], profile: '
|
|
3492
|
-
{ files: ['**/*.mts', '**/*.tsx'], profile: '
|
|
3493
|
-
{ files: ['**/*.vue'], profile: '
|
|
3494
|
-
{ files: ['**/*.d.ts'], profile: '
|
|
3495
|
-
{ files: ['**/*.svelte'], profile: '
|
|
3496
|
-
{ files: ['**/*.svelte.js'], profile: '
|
|
3497
|
-
{ files: ['**/*.svelte.ts'], profile: '
|
|
3552
|
+
{ files: ['**/*.js'], profile: '8e441c888b13fa04' },
|
|
3553
|
+
{ files: ['**/*.ts'], profile: 'ea64b8c139f711e0' },
|
|
3554
|
+
{ files: ['**/*.cjs'], profile: '8e441c888b13fa04' },
|
|
3555
|
+
{ files: ['**/*.cts'], profile: 'ea64b8c139f711e0' },
|
|
3556
|
+
{ files: ['**/*.jsx', '**/*.mjs'], profile: '8e441c888b13fa04' },
|
|
3557
|
+
{ files: ['**/*.mts', '**/*.tsx'], profile: 'ea64b8c139f711e0' },
|
|
3558
|
+
{ files: ['**/*.vue'], profile: 'bab56d04662bfdea' },
|
|
3559
|
+
{ files: ['**/*.d.ts'], profile: 'ea64b8c139f711e0' },
|
|
3560
|
+
{ files: ['**/*.svelte'], profile: '1f34405876ffc865' },
|
|
3561
|
+
{ files: ['**/*.svelte.js'], profile: '8e441c888b13fa04' },
|
|
3562
|
+
{ files: ['**/*.svelte.ts'], profile: 'ea64b8c139f711e0' },
|
|
3498
3563
|
],
|
|
3499
3564
|
}
|