@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
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
'import-x-js',
|
|
9
9
|
'next-js',
|
|
10
10
|
'react-hooks-js',
|
|
11
|
-
'react-
|
|
11
|
+
'react-modern',
|
|
12
12
|
'sonarjs',
|
|
13
13
|
'stylistic-js',
|
|
14
14
|
'typescript-js',
|
|
@@ -20,10 +20,74 @@ export default {
|
|
|
20
20
|
'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
|
|
21
21
|
'import-x/resolver': { typescript: true, node: true },
|
|
22
22
|
react: { version: '999.999.999' },
|
|
23
|
+
'react-x': { version: 'detect', importSource: 'react', polymorphicPropName: 'as' },
|
|
23
24
|
},
|
|
24
25
|
profiles: {
|
|
25
|
-
'
|
|
26
|
+
'9ad9a340ab3e4101': {
|
|
26
27
|
rules: {
|
|
28
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
29
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
30
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
31
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
32
|
+
'react-modern/dom-no-hydrate': [2],
|
|
33
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
34
|
+
'react-modern/dom-no-render': [2],
|
|
35
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
36
|
+
'react-modern/dom-no-script-url': [1],
|
|
37
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
38
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
39
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
40
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
41
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
42
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
43
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
44
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
45
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
46
|
+
'react-modern/jsx-no-namespace': [2],
|
|
47
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
48
|
+
'react-modern/naming-convention-context-name': [1],
|
|
49
|
+
'react-modern/naming-convention-id-name': [1],
|
|
50
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
51
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
52
|
+
'react/no-array-index-key': [1],
|
|
53
|
+
'react-modern/no-children-count': [1],
|
|
54
|
+
'react-modern/no-children-for-each': [1],
|
|
55
|
+
'react-modern/no-children-map': [1],
|
|
56
|
+
'react-modern/no-children-only': [1],
|
|
57
|
+
'react-modern/no-children-to-array': [1],
|
|
58
|
+
'react/no-clone-element': [1],
|
|
59
|
+
'react-modern/no-component-will-mount': [2],
|
|
60
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
61
|
+
'react-modern/no-component-will-update': [2],
|
|
62
|
+
'react-modern/no-context-provider': [1],
|
|
63
|
+
'react-modern/no-create-ref': [2],
|
|
64
|
+
'react/no-direct-mutation-state': [2],
|
|
65
|
+
'react-modern/no-forward-ref': [1],
|
|
66
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
67
|
+
'react-modern/no-missing-key': [2],
|
|
68
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
69
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
70
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
71
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
72
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
73
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
74
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
75
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
76
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
77
|
+
'react-modern/no-unstable-context-value': [2],
|
|
78
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
79
|
+
'react-modern/no-use-context': [1],
|
|
80
|
+
'react-modern/rsc-function-definition': [2],
|
|
81
|
+
'react-modern/use-state': [
|
|
82
|
+
2,
|
|
83
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
84
|
+
],
|
|
85
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
86
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
87
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
88
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
89
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
90
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
27
91
|
'nextjs/google-font-display': [1],
|
|
28
92
|
'nextjs/google-font-preconnect': [1],
|
|
29
93
|
'nextjs/inline-script-id': [2],
|
|
@@ -60,7 +124,7 @@ export default {
|
|
|
60
124
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
61
125
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
62
126
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
63
|
-
'stylistic-js/jsx-
|
|
127
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
64
128
|
'stylistic-js/jsx-tag-spacing': [
|
|
65
129
|
2,
|
|
66
130
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -83,6 +147,7 @@ export default {
|
|
|
83
147
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
84
148
|
'typescript/adjacent-overload-signatures': [2],
|
|
85
149
|
'typescript-js/array-type': [2],
|
|
150
|
+
'typescript/await-thenable': [2],
|
|
86
151
|
'typescript/ban-ts-comment': [
|
|
87
152
|
2,
|
|
88
153
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -101,14 +166,18 @@ export default {
|
|
|
101
166
|
'typescript/no-empty-object-type': [2],
|
|
102
167
|
'typescript/no-explicit-any': [2],
|
|
103
168
|
'typescript/no-extra-non-null-assertion': [2],
|
|
169
|
+
'typescript/no-floating-promises': [2],
|
|
104
170
|
'typescript/no-inferrable-types': [2],
|
|
105
171
|
'typescript/no-misused-new': [2],
|
|
172
|
+
'typescript/no-misused-promises': [2],
|
|
106
173
|
'typescript/no-namespace': [2],
|
|
107
174
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
108
175
|
'typescript/no-require-imports': [2],
|
|
109
176
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
110
177
|
'typescript/no-this-alias': [2],
|
|
178
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
111
179
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
180
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
112
181
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
113
182
|
'typescript/no-unsafe-function-type': [2],
|
|
114
183
|
'eslint/no-unused-expressions': [
|
|
@@ -121,6 +190,7 @@ export default {
|
|
|
121
190
|
'typescript/prefer-for-of': [2],
|
|
122
191
|
'typescript/prefer-function-type': [2],
|
|
123
192
|
'typescript/prefer-namespace-keyword': [2],
|
|
193
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
124
194
|
'typescript/switch-exhaustiveness-check': [2],
|
|
125
195
|
'typescript/triple-slash-reference': [2],
|
|
126
196
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -129,6 +199,7 @@ export default {
|
|
|
129
199
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
130
200
|
],
|
|
131
201
|
'eslint/constructor-super': [2],
|
|
202
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
132
203
|
'eslint/for-direction': [2],
|
|
133
204
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
134
205
|
'import/default': [2],
|
|
@@ -140,20 +211,7 @@ export default {
|
|
|
140
211
|
'import/no-named-as-default': [1],
|
|
141
212
|
'import/no-named-as-default-member': [1],
|
|
142
213
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
143
|
-
'
|
|
144
|
-
2,
|
|
145
|
-
{
|
|
146
|
-
'newlines-between': 'always',
|
|
147
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
148
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
149
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
150
|
-
distinctGroup: true,
|
|
151
|
-
sortTypesGroup: false,
|
|
152
|
-
named: false,
|
|
153
|
-
warnOnUnassignedImports: false,
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
'eslint-js/newline-before-return': [2],
|
|
214
|
+
'eslint/max-depth': [1, 4],
|
|
157
215
|
'eslint/no-async-promise-executor': [2],
|
|
158
216
|
'eslint/no-case-declarations': [2],
|
|
159
217
|
'eslint/no-class-assign': [2],
|
|
@@ -171,6 +229,7 @@ export default {
|
|
|
171
229
|
'eslint/no-dupe-else-if': [2],
|
|
172
230
|
'eslint/no-dupe-keys': [2],
|
|
173
231
|
'eslint/no-duplicate-case': [2],
|
|
232
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
174
233
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
175
234
|
'eslint/no-empty-character-class': [2],
|
|
176
235
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -247,45 +306,10 @@ export default {
|
|
|
247
306
|
'react/static-components': [2],
|
|
248
307
|
'react/unsupported-syntax': [1],
|
|
249
308
|
'react/use-memo': [2],
|
|
250
|
-
'react-js/boolean-prop-naming': [2],
|
|
251
|
-
'react/button-has-type': [2],
|
|
252
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
253
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
254
|
-
'react-js/destructuring-assignment': [2],
|
|
255
|
-
'react/display-name': [2],
|
|
256
|
-
'react/function-component-definition': [
|
|
257
|
-
2,
|
|
258
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
259
|
-
],
|
|
260
|
-
'react/hook-use-state': [2],
|
|
261
|
-
'react/jsx-boolean-value': [2],
|
|
262
|
-
'react/jsx-fragments': [2],
|
|
263
|
-
'react/jsx-handler-names': [2],
|
|
264
|
-
'react/jsx-key': [2],
|
|
265
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
266
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
267
|
-
'react/jsx-no-duplicate-props': [2],
|
|
268
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
269
|
-
'react/jsx-no-target-blank': [2],
|
|
270
|
-
'react/jsx-no-undef': [2],
|
|
271
|
-
'react/jsx-no-useless-fragment': [2],
|
|
272
|
-
'react/no-children-prop': [2],
|
|
273
|
-
'react/no-danger-with-children': [2],
|
|
274
|
-
'react-js/no-deprecated': [2],
|
|
275
|
-
'react/no-direct-mutation-state': [2],
|
|
276
|
-
'react/no-find-dom-node': [2],
|
|
277
|
-
'react/no-is-mounted': [2],
|
|
278
|
-
'react/no-multi-comp': [2],
|
|
279
|
-
'react/no-render-return-value': [2],
|
|
280
|
-
'react/no-string-refs': [2],
|
|
281
|
-
'react/no-unescaped-entities': [2],
|
|
282
|
-
'react/no-unknown-property': [2],
|
|
283
|
-
'react-js/prop-types': [2],
|
|
284
|
-
'react/require-render-return': [2],
|
|
285
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
286
309
|
'eslint/require-yield': [2],
|
|
287
310
|
'sonarjs/assertions-in-test-cases': [2],
|
|
288
311
|
'sonarjs/async-test-assertions': [2],
|
|
312
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
289
313
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
290
314
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
291
315
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -348,14 +372,17 @@ export default {
|
|
|
348
372
|
'sonarjs/no-clear-text-protocols': [2],
|
|
349
373
|
'sonarjs/no-code-after-done': [2],
|
|
350
374
|
'sonarjs/no-dead-store': [2],
|
|
375
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
351
376
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
352
377
|
'sonarjs/no-default-utility-imports': [2],
|
|
353
378
|
'sonarjs/no-delete-var': [2],
|
|
354
379
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
380
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
355
381
|
'sonarjs/no-duplicate-test-title': [2],
|
|
356
382
|
'sonarjs/no-duplicated-branches': [2],
|
|
357
383
|
'sonarjs/no-element-overwrite': [2],
|
|
358
384
|
'sonarjs/no-empty-collection': [2],
|
|
385
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
359
386
|
'sonarjs/no-empty-test-file': [2],
|
|
360
387
|
'sonarjs/no-empty-test-title': [2],
|
|
361
388
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -388,10 +415,10 @@ export default {
|
|
|
388
415
|
'sonarjs/no-labels': [2],
|
|
389
416
|
'sonarjs/no-literal-call': [2],
|
|
390
417
|
'sonarjs/no-mime-sniff': [2],
|
|
391
|
-
'sonarjs/no-
|
|
418
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
392
419
|
'sonarjs/no-nested-assignment': [2],
|
|
393
420
|
'sonarjs/no-nested-conditional': [2],
|
|
394
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
421
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
395
422
|
'sonarjs/no-nested-template-literals': [2],
|
|
396
423
|
'sonarjs/no-os-command-from-path': [2],
|
|
397
424
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -415,12 +442,17 @@ export default {
|
|
|
415
442
|
'sonarjs/no-useless-catch': [2],
|
|
416
443
|
'sonarjs/no-useless-increment': [2],
|
|
417
444
|
'sonarjs/no-useless-react-setstate': [2],
|
|
445
|
+
'sonarjs/no-vue-class-component': [2],
|
|
446
|
+
'sonarjs/no-vue-mixins': [2],
|
|
418
447
|
'sonarjs/no-weak-cipher': [2],
|
|
419
448
|
'sonarjs/no-weak-keys': [2],
|
|
420
449
|
'sonarjs/non-existent-operator': [2],
|
|
421
450
|
'sonarjs/object-alt-content': [2],
|
|
422
451
|
'sonarjs/parameterized-tests': [2],
|
|
452
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
423
453
|
'sonarjs/prefer-default-last': [2],
|
|
454
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
455
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
424
456
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
425
457
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
426
458
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -443,12 +475,15 @@ export default {
|
|
|
443
475
|
'sonarjs/table-header': [2],
|
|
444
476
|
'sonarjs/table-header-reference': [2],
|
|
445
477
|
'sonarjs/test-check-exception': [2],
|
|
478
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
479
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
446
480
|
'sonarjs/todo-tag': [1],
|
|
447
481
|
'sonarjs/unverified-certificate': [2],
|
|
448
482
|
'sonarjs/unverified-hostname': [2],
|
|
449
483
|
'sonarjs/updated-const-var': [2],
|
|
450
484
|
'sonarjs/updated-loop-counter': [2],
|
|
451
485
|
'sonarjs/use-type-alias': [2],
|
|
486
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
452
487
|
'sonarjs/weak-ssl': [2],
|
|
453
488
|
'sonarjs/x-powered-by': [2],
|
|
454
489
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -496,7 +531,6 @@ export default {
|
|
|
496
531
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
497
532
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
498
533
|
'unicorn/consistent-date-clone': [2],
|
|
499
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
500
534
|
'unicorn/consistent-empty-array-spread': [2],
|
|
501
535
|
'unicorn/consistent-existence-index-check': [2],
|
|
502
536
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -531,22 +565,6 @@ export default {
|
|
|
531
565
|
],
|
|
532
566
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
533
567
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
534
|
-
'unicorn-js/name-replacements': [
|
|
535
|
-
2,
|
|
536
|
-
{
|
|
537
|
-
replacements: {
|
|
538
|
-
dev: false,
|
|
539
|
-
prod: false,
|
|
540
|
-
props: false,
|
|
541
|
-
ref: false,
|
|
542
|
-
refs: false,
|
|
543
|
-
args: false,
|
|
544
|
-
params: false,
|
|
545
|
-
utils: false,
|
|
546
|
-
env: false,
|
|
547
|
-
},
|
|
548
|
-
},
|
|
549
|
-
],
|
|
550
568
|
'unicorn/new-for-builtins': [2],
|
|
551
569
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
552
570
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -655,7 +673,6 @@ export default {
|
|
|
655
673
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
656
674
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
657
675
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
658
|
-
'unicorn-js/no-unused-properties': [2],
|
|
659
676
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
660
677
|
'unicorn-js/no-useless-coercion': [2],
|
|
661
678
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -910,8 +927,71 @@ export default {
|
|
|
910
927
|
WeakSet: 'readonly',
|
|
911
928
|
},
|
|
912
929
|
},
|
|
913
|
-
|
|
930
|
+
a8bb79650fd474f5: {
|
|
914
931
|
rules: {
|
|
932
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
933
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
934
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
935
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
936
|
+
'react-modern/dom-no-hydrate': [2],
|
|
937
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
938
|
+
'react-modern/dom-no-render': [2],
|
|
939
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
940
|
+
'react-modern/dom-no-script-url': [1],
|
|
941
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
942
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
943
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
944
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
945
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
946
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
947
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
948
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
949
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
950
|
+
'react-modern/jsx-no-namespace': [2],
|
|
951
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
952
|
+
'react-modern/naming-convention-context-name': [1],
|
|
953
|
+
'react-modern/naming-convention-id-name': [1],
|
|
954
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
955
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
956
|
+
'react/no-array-index-key': [1],
|
|
957
|
+
'react-modern/no-children-count': [1],
|
|
958
|
+
'react-modern/no-children-for-each': [1],
|
|
959
|
+
'react-modern/no-children-map': [1],
|
|
960
|
+
'react-modern/no-children-only': [1],
|
|
961
|
+
'react-modern/no-children-to-array': [1],
|
|
962
|
+
'react/no-clone-element': [1],
|
|
963
|
+
'react-modern/no-component-will-mount': [2],
|
|
964
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
965
|
+
'react-modern/no-component-will-update': [2],
|
|
966
|
+
'react-modern/no-context-provider': [1],
|
|
967
|
+
'react-modern/no-create-ref': [2],
|
|
968
|
+
'react/no-direct-mutation-state': [2],
|
|
969
|
+
'react-modern/no-forward-ref': [1],
|
|
970
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
971
|
+
'react-modern/no-missing-key': [2],
|
|
972
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
973
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
974
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
975
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
976
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
977
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
978
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
979
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
980
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
981
|
+
'react-modern/no-unstable-context-value': [2],
|
|
982
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
983
|
+
'react-modern/no-use-context': [1],
|
|
984
|
+
'react-modern/rsc-function-definition': [2],
|
|
985
|
+
'react-modern/use-state': [
|
|
986
|
+
2,
|
|
987
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
988
|
+
],
|
|
989
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
990
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
991
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
992
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
993
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
994
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
915
995
|
'nextjs/google-font-display': [1],
|
|
916
996
|
'nextjs/google-font-preconnect': [1],
|
|
917
997
|
'nextjs/inline-script-id': [2],
|
|
@@ -948,7 +1028,7 @@ export default {
|
|
|
948
1028
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
949
1029
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
950
1030
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
951
|
-
'stylistic-js/jsx-
|
|
1031
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
952
1032
|
'stylistic-js/jsx-tag-spacing': [
|
|
953
1033
|
2,
|
|
954
1034
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -971,6 +1051,7 @@ export default {
|
|
|
971
1051
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
972
1052
|
'typescript/adjacent-overload-signatures': [2],
|
|
973
1053
|
'typescript-js/array-type': [2],
|
|
1054
|
+
'typescript/await-thenable': [2],
|
|
974
1055
|
'typescript/ban-ts-comment': [
|
|
975
1056
|
2,
|
|
976
1057
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -989,14 +1070,18 @@ export default {
|
|
|
989
1070
|
'typescript/no-empty-object-type': [2],
|
|
990
1071
|
'typescript/no-explicit-any': [2],
|
|
991
1072
|
'typescript/no-extra-non-null-assertion': [2],
|
|
1073
|
+
'typescript/no-floating-promises': [2],
|
|
992
1074
|
'typescript/no-inferrable-types': [2],
|
|
993
1075
|
'typescript/no-misused-new': [2],
|
|
1076
|
+
'typescript/no-misused-promises': [2],
|
|
994
1077
|
'typescript/no-namespace': [2],
|
|
995
1078
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
996
1079
|
'typescript/no-require-imports': [2],
|
|
997
1080
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
998
1081
|
'typescript/no-this-alias': [2],
|
|
1082
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
999
1083
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
1084
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
1000
1085
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
1001
1086
|
'typescript/no-unsafe-function-type': [2],
|
|
1002
1087
|
'eslint/no-unused-expressions': [
|
|
@@ -1009,6 +1094,7 @@ export default {
|
|
|
1009
1094
|
'typescript/prefer-for-of': [2],
|
|
1010
1095
|
'typescript/prefer-function-type': [2],
|
|
1011
1096
|
'typescript/prefer-namespace-keyword': [2],
|
|
1097
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
1012
1098
|
'typescript/switch-exhaustiveness-check': [2],
|
|
1013
1099
|
'typescript/triple-slash-reference': [2],
|
|
1014
1100
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -1017,6 +1103,7 @@ export default {
|
|
|
1017
1103
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
1018
1104
|
],
|
|
1019
1105
|
'eslint/constructor-super': 'off',
|
|
1106
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
1020
1107
|
'eslint/for-direction': [2],
|
|
1021
1108
|
'eslint/getter-return': 'off',
|
|
1022
1109
|
'import/default': [2],
|
|
@@ -1028,20 +1115,7 @@ export default {
|
|
|
1028
1115
|
'import/no-named-as-default': [1],
|
|
1029
1116
|
'import/no-named-as-default-member': [1],
|
|
1030
1117
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
1031
|
-
'
|
|
1032
|
-
2,
|
|
1033
|
-
{
|
|
1034
|
-
'newlines-between': 'always',
|
|
1035
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
1036
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
1037
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
1038
|
-
distinctGroup: true,
|
|
1039
|
-
sortTypesGroup: false,
|
|
1040
|
-
named: false,
|
|
1041
|
-
warnOnUnassignedImports: false,
|
|
1042
|
-
},
|
|
1043
|
-
],
|
|
1044
|
-
'eslint-js/newline-before-return': [2],
|
|
1118
|
+
'eslint/max-depth': [1, 4],
|
|
1045
1119
|
'eslint/no-async-promise-executor': [2],
|
|
1046
1120
|
'eslint/no-case-declarations': [2],
|
|
1047
1121
|
'eslint/no-class-assign': 'off',
|
|
@@ -1059,6 +1133,7 @@ export default {
|
|
|
1059
1133
|
'eslint/no-dupe-else-if': [2],
|
|
1060
1134
|
'eslint/no-dupe-keys': 'off',
|
|
1061
1135
|
'eslint/no-duplicate-case': [2],
|
|
1136
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
1062
1137
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
1063
1138
|
'eslint/no-empty-character-class': [2],
|
|
1064
1139
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -1135,45 +1210,10 @@ export default {
|
|
|
1135
1210
|
'react/static-components': [2],
|
|
1136
1211
|
'react/unsupported-syntax': [1],
|
|
1137
1212
|
'react/use-memo': [2],
|
|
1138
|
-
'react-js/boolean-prop-naming': [2],
|
|
1139
|
-
'react/button-has-type': [2],
|
|
1140
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1141
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1142
|
-
'react-js/destructuring-assignment': [2],
|
|
1143
|
-
'react/display-name': [2],
|
|
1144
|
-
'react/function-component-definition': [
|
|
1145
|
-
2,
|
|
1146
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1147
|
-
],
|
|
1148
|
-
'react/hook-use-state': [2],
|
|
1149
|
-
'react/jsx-boolean-value': [2],
|
|
1150
|
-
'react/jsx-fragments': [2],
|
|
1151
|
-
'react/jsx-handler-names': [2],
|
|
1152
|
-
'react/jsx-key': [2],
|
|
1153
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1154
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1155
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1156
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1157
|
-
'react/jsx-no-target-blank': [2],
|
|
1158
|
-
'react/jsx-no-undef': [2],
|
|
1159
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1160
|
-
'react/no-children-prop': [2],
|
|
1161
|
-
'react/no-danger-with-children': [2],
|
|
1162
|
-
'react-js/no-deprecated': [2],
|
|
1163
|
-
'react/no-direct-mutation-state': [2],
|
|
1164
|
-
'react/no-find-dom-node': [2],
|
|
1165
|
-
'react/no-is-mounted': [2],
|
|
1166
|
-
'react/no-multi-comp': [2],
|
|
1167
|
-
'react/no-render-return-value': [2],
|
|
1168
|
-
'react/no-string-refs': [2],
|
|
1169
|
-
'react/no-unescaped-entities': [2],
|
|
1170
|
-
'react/no-unknown-property': [2],
|
|
1171
|
-
'react-js/prop-types': [2],
|
|
1172
|
-
'react/require-render-return': [2],
|
|
1173
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1174
1213
|
'eslint/require-yield': [2],
|
|
1175
1214
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1176
1215
|
'sonarjs/async-test-assertions': [2],
|
|
1216
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1177
1217
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1178
1218
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
1179
1219
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1236,14 +1276,17 @@ export default {
|
|
|
1236
1276
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1237
1277
|
'sonarjs/no-code-after-done': [2],
|
|
1238
1278
|
'sonarjs/no-dead-store': [2],
|
|
1279
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1239
1280
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1240
1281
|
'sonarjs/no-default-utility-imports': [2],
|
|
1241
1282
|
'sonarjs/no-delete-var': [2],
|
|
1242
1283
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1284
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1243
1285
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1244
1286
|
'sonarjs/no-duplicated-branches': [2],
|
|
1245
1287
|
'sonarjs/no-element-overwrite': [2],
|
|
1246
1288
|
'sonarjs/no-empty-collection': [2],
|
|
1289
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1247
1290
|
'sonarjs/no-empty-test-file': [2],
|
|
1248
1291
|
'sonarjs/no-empty-test-title': [2],
|
|
1249
1292
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1276,10 +1319,10 @@ export default {
|
|
|
1276
1319
|
'sonarjs/no-labels': [2],
|
|
1277
1320
|
'sonarjs/no-literal-call': [2],
|
|
1278
1321
|
'sonarjs/no-mime-sniff': [2],
|
|
1279
|
-
'sonarjs/no-
|
|
1322
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1280
1323
|
'sonarjs/no-nested-assignment': [2],
|
|
1281
1324
|
'sonarjs/no-nested-conditional': [2],
|
|
1282
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1325
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1283
1326
|
'sonarjs/no-nested-template-literals': [2],
|
|
1284
1327
|
'sonarjs/no-os-command-from-path': [2],
|
|
1285
1328
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1303,12 +1346,17 @@ export default {
|
|
|
1303
1346
|
'sonarjs/no-useless-catch': [2],
|
|
1304
1347
|
'sonarjs/no-useless-increment': [2],
|
|
1305
1348
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1349
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1350
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1306
1351
|
'sonarjs/no-weak-cipher': [2],
|
|
1307
1352
|
'sonarjs/no-weak-keys': [2],
|
|
1308
1353
|
'sonarjs/non-existent-operator': [2],
|
|
1309
1354
|
'sonarjs/object-alt-content': [2],
|
|
1310
1355
|
'sonarjs/parameterized-tests': [2],
|
|
1356
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1311
1357
|
'sonarjs/prefer-default-last': [2],
|
|
1358
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1359
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1312
1360
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1313
1361
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1314
1362
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -1331,12 +1379,15 @@ export default {
|
|
|
1331
1379
|
'sonarjs/table-header': [2],
|
|
1332
1380
|
'sonarjs/table-header-reference': [2],
|
|
1333
1381
|
'sonarjs/test-check-exception': [2],
|
|
1382
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1383
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1334
1384
|
'sonarjs/todo-tag': [1],
|
|
1335
1385
|
'sonarjs/unverified-certificate': [2],
|
|
1336
1386
|
'sonarjs/unverified-hostname': [2],
|
|
1337
1387
|
'sonarjs/updated-const-var': [2],
|
|
1338
1388
|
'sonarjs/updated-loop-counter': [2],
|
|
1339
1389
|
'sonarjs/use-type-alias': [2],
|
|
1390
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1340
1391
|
'sonarjs/weak-ssl': [2],
|
|
1341
1392
|
'sonarjs/x-powered-by': [2],
|
|
1342
1393
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1384,7 +1435,6 @@ export default {
|
|
|
1384
1435
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
1385
1436
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
1386
1437
|
'unicorn/consistent-date-clone': [2],
|
|
1387
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
1388
1438
|
'unicorn/consistent-empty-array-spread': [2],
|
|
1389
1439
|
'unicorn/consistent-existence-index-check': [2],
|
|
1390
1440
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -1419,22 +1469,6 @@ export default {
|
|
|
1419
1469
|
],
|
|
1420
1470
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
1421
1471
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
1422
|
-
'unicorn-js/name-replacements': [
|
|
1423
|
-
2,
|
|
1424
|
-
{
|
|
1425
|
-
replacements: {
|
|
1426
|
-
dev: false,
|
|
1427
|
-
prod: false,
|
|
1428
|
-
props: false,
|
|
1429
|
-
ref: false,
|
|
1430
|
-
refs: false,
|
|
1431
|
-
args: false,
|
|
1432
|
-
params: false,
|
|
1433
|
-
utils: false,
|
|
1434
|
-
env: false,
|
|
1435
|
-
},
|
|
1436
|
-
},
|
|
1437
|
-
],
|
|
1438
1472
|
'unicorn/new-for-builtins': [2],
|
|
1439
1473
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
1440
1474
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -1543,7 +1577,6 @@ export default {
|
|
|
1543
1577
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
1544
1578
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
1545
1579
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
1546
|
-
'unicorn-js/no-unused-properties': [2],
|
|
1547
1580
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
1548
1581
|
'unicorn-js/no-useless-coercion': [2],
|
|
1549
1582
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -1798,8 +1831,71 @@ export default {
|
|
|
1798
1831
|
WeakSet: 'readonly',
|
|
1799
1832
|
},
|
|
1800
1833
|
},
|
|
1801
|
-
|
|
1834
|
+
e067f07f9f814053: {
|
|
1802
1835
|
rules: {
|
|
1836
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
1837
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
1838
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
1839
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
1840
|
+
'react-modern/dom-no-hydrate': [2],
|
|
1841
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
1842
|
+
'react-modern/dom-no-render': [2],
|
|
1843
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
1844
|
+
'react-modern/dom-no-script-url': [1],
|
|
1845
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
1846
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
1847
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
1848
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
1849
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
1850
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
1851
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
1852
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
1853
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
1854
|
+
'react-modern/jsx-no-namespace': [2],
|
|
1855
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
1856
|
+
'react-modern/naming-convention-context-name': [1],
|
|
1857
|
+
'react-modern/naming-convention-id-name': [1],
|
|
1858
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
1859
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
1860
|
+
'react/no-array-index-key': [1],
|
|
1861
|
+
'react-modern/no-children-count': [1],
|
|
1862
|
+
'react-modern/no-children-for-each': [1],
|
|
1863
|
+
'react-modern/no-children-map': [1],
|
|
1864
|
+
'react-modern/no-children-only': [1],
|
|
1865
|
+
'react-modern/no-children-to-array': [1],
|
|
1866
|
+
'react/no-clone-element': [1],
|
|
1867
|
+
'react-modern/no-component-will-mount': [2],
|
|
1868
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
1869
|
+
'react-modern/no-component-will-update': [2],
|
|
1870
|
+
'react-modern/no-context-provider': [1],
|
|
1871
|
+
'react-modern/no-create-ref': [2],
|
|
1872
|
+
'react/no-direct-mutation-state': [2],
|
|
1873
|
+
'react-modern/no-forward-ref': [1],
|
|
1874
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
1875
|
+
'react-modern/no-missing-key': [2],
|
|
1876
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
1877
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
1878
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
1879
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
1880
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
1881
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
1882
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
1883
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
1884
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
1885
|
+
'react-modern/no-unstable-context-value': [2],
|
|
1886
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
1887
|
+
'react-modern/no-use-context': [1],
|
|
1888
|
+
'react-modern/rsc-function-definition': [2],
|
|
1889
|
+
'react-modern/use-state': [
|
|
1890
|
+
2,
|
|
1891
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
1892
|
+
],
|
|
1893
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
1894
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
1895
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
1896
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
1897
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
1898
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
1803
1899
|
'nextjs/google-font-display': [1],
|
|
1804
1900
|
'nextjs/google-font-preconnect': [1],
|
|
1805
1901
|
'nextjs/inline-script-id': [2],
|
|
@@ -1836,7 +1932,7 @@ export default {
|
|
|
1836
1932
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
1837
1933
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
1838
1934
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
1839
|
-
'stylistic-js/jsx-
|
|
1935
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
1840
1936
|
'stylistic-js/jsx-tag-spacing': [
|
|
1841
1937
|
2,
|
|
1842
1938
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1859,6 +1955,7 @@ export default {
|
|
|
1859
1955
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
1860
1956
|
'typescript/adjacent-overload-signatures': [2],
|
|
1861
1957
|
'typescript-js/array-type': [2],
|
|
1958
|
+
'typescript/await-thenable': 'off',
|
|
1862
1959
|
'typescript/ban-ts-comment': [
|
|
1863
1960
|
2,
|
|
1864
1961
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -1877,14 +1974,18 @@ export default {
|
|
|
1877
1974
|
'typescript/no-empty-object-type': [2],
|
|
1878
1975
|
'typescript/no-explicit-any': [2],
|
|
1879
1976
|
'typescript/no-extra-non-null-assertion': [2],
|
|
1977
|
+
'typescript/no-floating-promises': 'off',
|
|
1880
1978
|
'typescript/no-inferrable-types': [2],
|
|
1881
1979
|
'typescript/no-misused-new': [2],
|
|
1980
|
+
'typescript/no-misused-promises': 'off',
|
|
1882
1981
|
'typescript/no-namespace': [2],
|
|
1883
1982
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
1884
1983
|
'typescript/no-require-imports': [2],
|
|
1885
1984
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
1886
1985
|
'typescript/no-this-alias': [2],
|
|
1986
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
1887
1987
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
1988
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
1888
1989
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
1889
1990
|
'typescript/no-unsafe-function-type': [2],
|
|
1890
1991
|
'eslint/no-unused-expressions': [
|
|
@@ -1897,6 +1998,7 @@ export default {
|
|
|
1897
1998
|
'typescript/prefer-for-of': [2],
|
|
1898
1999
|
'typescript/prefer-function-type': [2],
|
|
1899
2000
|
'typescript/prefer-namespace-keyword': [2],
|
|
2001
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
1900
2002
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
1901
2003
|
'typescript/triple-slash-reference': [2],
|
|
1902
2004
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -1905,6 +2007,7 @@ export default {
|
|
|
1905
2007
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
1906
2008
|
],
|
|
1907
2009
|
'eslint/constructor-super': [2],
|
|
2010
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
1908
2011
|
'eslint/for-direction': [2],
|
|
1909
2012
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
1910
2013
|
'import/default': [2],
|
|
@@ -1916,20 +2019,7 @@ export default {
|
|
|
1916
2019
|
'import/no-named-as-default': [1],
|
|
1917
2020
|
'import/no-named-as-default-member': [1],
|
|
1918
2021
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
1919
|
-
'
|
|
1920
|
-
2,
|
|
1921
|
-
{
|
|
1922
|
-
'newlines-between': 'always',
|
|
1923
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
1924
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
1925
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
1926
|
-
distinctGroup: true,
|
|
1927
|
-
sortTypesGroup: false,
|
|
1928
|
-
named: false,
|
|
1929
|
-
warnOnUnassignedImports: false,
|
|
1930
|
-
},
|
|
1931
|
-
],
|
|
1932
|
-
'eslint-js/newline-before-return': [2],
|
|
2022
|
+
'eslint/max-depth': [1, 4],
|
|
1933
2023
|
'eslint/no-async-promise-executor': [2],
|
|
1934
2024
|
'eslint/no-case-declarations': [2],
|
|
1935
2025
|
'eslint/no-class-assign': [2],
|
|
@@ -1947,6 +2037,7 @@ export default {
|
|
|
1947
2037
|
'eslint/no-dupe-else-if': [2],
|
|
1948
2038
|
'eslint/no-dupe-keys': [2],
|
|
1949
2039
|
'eslint/no-duplicate-case': [2],
|
|
2040
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
1950
2041
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
1951
2042
|
'eslint/no-empty-character-class': [2],
|
|
1952
2043
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -2023,45 +2114,10 @@ export default {
|
|
|
2023
2114
|
'react/static-components': [2],
|
|
2024
2115
|
'react/unsupported-syntax': [1],
|
|
2025
2116
|
'react/use-memo': [2],
|
|
2026
|
-
'react-js/boolean-prop-naming': [2],
|
|
2027
|
-
'react/button-has-type': [2],
|
|
2028
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
2029
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
2030
|
-
'react-js/destructuring-assignment': [2],
|
|
2031
|
-
'react/display-name': [2],
|
|
2032
|
-
'react/function-component-definition': [
|
|
2033
|
-
2,
|
|
2034
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
2035
|
-
],
|
|
2036
|
-
'react/hook-use-state': [2],
|
|
2037
|
-
'react/jsx-boolean-value': [2],
|
|
2038
|
-
'react/jsx-fragments': [2],
|
|
2039
|
-
'react/jsx-handler-names': [2],
|
|
2040
|
-
'react/jsx-key': [2],
|
|
2041
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
2042
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
2043
|
-
'react/jsx-no-duplicate-props': [2],
|
|
2044
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
2045
|
-
'react/jsx-no-target-blank': [2],
|
|
2046
|
-
'react/jsx-no-undef': [2],
|
|
2047
|
-
'react/jsx-no-useless-fragment': [2],
|
|
2048
|
-
'react/no-children-prop': [2],
|
|
2049
|
-
'react/no-danger-with-children': [2],
|
|
2050
|
-
'react-js/no-deprecated': [2],
|
|
2051
|
-
'react/no-direct-mutation-state': [2],
|
|
2052
|
-
'react/no-find-dom-node': [2],
|
|
2053
|
-
'react/no-is-mounted': [2],
|
|
2054
|
-
'react/no-multi-comp': [2],
|
|
2055
|
-
'react/no-render-return-value': [2],
|
|
2056
|
-
'react/no-string-refs': [2],
|
|
2057
|
-
'react/no-unescaped-entities': [2],
|
|
2058
|
-
'react/no-unknown-property': [2],
|
|
2059
|
-
'react-js/prop-types': [2],
|
|
2060
|
-
'react/require-render-return': [2],
|
|
2061
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
2062
2117
|
'eslint/require-yield': [2],
|
|
2063
2118
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2064
2119
|
'sonarjs/async-test-assertions': [2],
|
|
2120
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2065
2121
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2066
2122
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2067
2123
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2124,14 +2180,17 @@ export default {
|
|
|
2124
2180
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2125
2181
|
'sonarjs/no-code-after-done': [2],
|
|
2126
2182
|
'sonarjs/no-dead-store': [2],
|
|
2183
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2127
2184
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2128
2185
|
'sonarjs/no-default-utility-imports': [2],
|
|
2129
2186
|
'sonarjs/no-delete-var': [2],
|
|
2130
2187
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
2188
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2131
2189
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2132
2190
|
'sonarjs/no-duplicated-branches': [2],
|
|
2133
2191
|
'sonarjs/no-element-overwrite': [2],
|
|
2134
2192
|
'sonarjs/no-empty-collection': [2],
|
|
2193
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2135
2194
|
'sonarjs/no-empty-test-file': [2],
|
|
2136
2195
|
'sonarjs/no-empty-test-title': [2],
|
|
2137
2196
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2164,10 +2223,10 @@ export default {
|
|
|
2164
2223
|
'sonarjs/no-labels': [2],
|
|
2165
2224
|
'sonarjs/no-literal-call': [2],
|
|
2166
2225
|
'sonarjs/no-mime-sniff': [2],
|
|
2167
|
-
'sonarjs/no-
|
|
2226
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2168
2227
|
'sonarjs/no-nested-assignment': [2],
|
|
2169
2228
|
'sonarjs/no-nested-conditional': [2],
|
|
2170
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
2229
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2171
2230
|
'sonarjs/no-nested-template-literals': [2],
|
|
2172
2231
|
'sonarjs/no-os-command-from-path': [2],
|
|
2173
2232
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2191,12 +2250,17 @@ export default {
|
|
|
2191
2250
|
'sonarjs/no-useless-catch': [2],
|
|
2192
2251
|
'sonarjs/no-useless-increment': [2],
|
|
2193
2252
|
'sonarjs/no-useless-react-setstate': [2],
|
|
2253
|
+
'sonarjs/no-vue-class-component': [2],
|
|
2254
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2194
2255
|
'sonarjs/no-weak-cipher': [2],
|
|
2195
2256
|
'sonarjs/no-weak-keys': [2],
|
|
2196
2257
|
'sonarjs/non-existent-operator': [2],
|
|
2197
2258
|
'sonarjs/object-alt-content': [2],
|
|
2198
2259
|
'sonarjs/parameterized-tests': [2],
|
|
2260
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2199
2261
|
'sonarjs/prefer-default-last': [2],
|
|
2262
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
2263
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2200
2264
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2201
2265
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2202
2266
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -2219,12 +2283,15 @@ export default {
|
|
|
2219
2283
|
'sonarjs/table-header': [2],
|
|
2220
2284
|
'sonarjs/table-header-reference': [2],
|
|
2221
2285
|
'sonarjs/test-check-exception': [2],
|
|
2286
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
2287
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
2222
2288
|
'sonarjs/todo-tag': [1],
|
|
2223
2289
|
'sonarjs/unverified-certificate': [2],
|
|
2224
2290
|
'sonarjs/unverified-hostname': [2],
|
|
2225
2291
|
'sonarjs/updated-const-var': [2],
|
|
2226
2292
|
'sonarjs/updated-loop-counter': [2],
|
|
2227
2293
|
'sonarjs/use-type-alias': [2],
|
|
2294
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
2228
2295
|
'sonarjs/weak-ssl': [2],
|
|
2229
2296
|
'sonarjs/x-powered-by': [2],
|
|
2230
2297
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -2272,7 +2339,6 @@ export default {
|
|
|
2272
2339
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
2273
2340
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
2274
2341
|
'unicorn/consistent-date-clone': [2],
|
|
2275
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
2276
2342
|
'unicorn/consistent-empty-array-spread': [2],
|
|
2277
2343
|
'unicorn/consistent-existence-index-check': [2],
|
|
2278
2344
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -2307,22 +2373,6 @@ export default {
|
|
|
2307
2373
|
],
|
|
2308
2374
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
2309
2375
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
2310
|
-
'unicorn-js/name-replacements': [
|
|
2311
|
-
2,
|
|
2312
|
-
{
|
|
2313
|
-
replacements: {
|
|
2314
|
-
dev: false,
|
|
2315
|
-
prod: false,
|
|
2316
|
-
props: false,
|
|
2317
|
-
ref: false,
|
|
2318
|
-
refs: false,
|
|
2319
|
-
args: false,
|
|
2320
|
-
params: false,
|
|
2321
|
-
utils: false,
|
|
2322
|
-
env: false,
|
|
2323
|
-
},
|
|
2324
|
-
},
|
|
2325
|
-
],
|
|
2326
2376
|
'unicorn/new-for-builtins': [2],
|
|
2327
2377
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
2328
2378
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -2431,7 +2481,6 @@ export default {
|
|
|
2431
2481
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
2432
2482
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
2433
2483
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
2434
|
-
'unicorn-js/no-unused-properties': [2],
|
|
2435
2484
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
2436
2485
|
'unicorn-js/no-useless-coercion': [2],
|
|
2437
2486
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -2686,8 +2735,71 @@ export default {
|
|
|
2686
2735
|
WeakSet: 'readonly',
|
|
2687
2736
|
},
|
|
2688
2737
|
},
|
|
2689
|
-
|
|
2738
|
+
ebf8d75958ea4a39: {
|
|
2690
2739
|
rules: {
|
|
2740
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
2741
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
2742
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
2743
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
2744
|
+
'react-modern/dom-no-hydrate': [2],
|
|
2745
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
2746
|
+
'react-modern/dom-no-render': [2],
|
|
2747
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
2748
|
+
'react-modern/dom-no-script-url': [1],
|
|
2749
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
2750
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
2751
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
2752
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
2753
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
2754
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
2755
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
2756
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
2757
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
2758
|
+
'react-modern/jsx-no-namespace': [2],
|
|
2759
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
2760
|
+
'react-modern/naming-convention-context-name': [1],
|
|
2761
|
+
'react-modern/naming-convention-id-name': [1],
|
|
2762
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
2763
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
2764
|
+
'react/no-array-index-key': [1],
|
|
2765
|
+
'react-modern/no-children-count': [1],
|
|
2766
|
+
'react-modern/no-children-for-each': [1],
|
|
2767
|
+
'react-modern/no-children-map': [1],
|
|
2768
|
+
'react-modern/no-children-only': [1],
|
|
2769
|
+
'react-modern/no-children-to-array': [1],
|
|
2770
|
+
'react/no-clone-element': [1],
|
|
2771
|
+
'react-modern/no-component-will-mount': [2],
|
|
2772
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
2773
|
+
'react-modern/no-component-will-update': [2],
|
|
2774
|
+
'react-modern/no-context-provider': [1],
|
|
2775
|
+
'react-modern/no-create-ref': [2],
|
|
2776
|
+
'react/no-direct-mutation-state': [2],
|
|
2777
|
+
'react-modern/no-forward-ref': [1],
|
|
2778
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
2779
|
+
'react-modern/no-missing-key': [2],
|
|
2780
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
2781
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
2782
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
2783
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
2784
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
2785
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
2786
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
2787
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
2788
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
2789
|
+
'react-modern/no-unstable-context-value': [2],
|
|
2790
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
2791
|
+
'react-modern/no-use-context': [1],
|
|
2792
|
+
'react-modern/rsc-function-definition': [2],
|
|
2793
|
+
'react-modern/use-state': [
|
|
2794
|
+
2,
|
|
2795
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
2796
|
+
],
|
|
2797
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
2798
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
2799
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
2800
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
2801
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
2802
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
2691
2803
|
'nextjs/google-font-display': [1],
|
|
2692
2804
|
'nextjs/google-font-preconnect': [1],
|
|
2693
2805
|
'nextjs/inline-script-id': [2],
|
|
@@ -2724,7 +2836,7 @@ export default {
|
|
|
2724
2836
|
'stylistic-js/jsx-equals-spacing': [2, 'never'],
|
|
2725
2837
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
2726
2838
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
2727
|
-
'stylistic-js/jsx-
|
|
2839
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
2728
2840
|
'stylistic-js/jsx-tag-spacing': [
|
|
2729
2841
|
2,
|
|
2730
2842
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2747,6 +2859,7 @@ export default {
|
|
|
2747
2859
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
2748
2860
|
'typescript/adjacent-overload-signatures': [2],
|
|
2749
2861
|
'typescript-js/array-type': [2],
|
|
2862
|
+
'typescript/await-thenable': 'off',
|
|
2750
2863
|
'typescript/ban-ts-comment': [2],
|
|
2751
2864
|
'typescript/ban-tslint-comment': [2],
|
|
2752
2865
|
'typescript/class-literal-property-style': [2],
|
|
@@ -2762,14 +2875,18 @@ export default {
|
|
|
2762
2875
|
'typescript/no-empty-object-type': [2],
|
|
2763
2876
|
'typescript/no-explicit-any': [2],
|
|
2764
2877
|
'typescript/no-extra-non-null-assertion': [2],
|
|
2878
|
+
'typescript/no-floating-promises': 'off',
|
|
2765
2879
|
'typescript/no-inferrable-types': [2],
|
|
2766
2880
|
'typescript/no-misused-new': [2],
|
|
2881
|
+
'typescript/no-misused-promises': 'off',
|
|
2767
2882
|
'typescript/no-namespace': [2],
|
|
2768
2883
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
2769
2884
|
'typescript/no-require-imports': [2],
|
|
2770
2885
|
'eslint/no-shadow': 'off',
|
|
2771
2886
|
'typescript/no-this-alias': [2],
|
|
2887
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
2772
2888
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
2889
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
2773
2890
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
2774
2891
|
'typescript/no-unsafe-function-type': [2],
|
|
2775
2892
|
'eslint/no-unused-expressions': [
|
|
@@ -2782,6 +2899,7 @@ export default {
|
|
|
2782
2899
|
'typescript/prefer-for-of': [2],
|
|
2783
2900
|
'typescript/prefer-function-type': [2],
|
|
2784
2901
|
'typescript/prefer-namespace-keyword': [2],
|
|
2902
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
2785
2903
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
2786
2904
|
'typescript/triple-slash-reference': [2],
|
|
2787
2905
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -2790,6 +2908,7 @@ export default {
|
|
|
2790
2908
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
2791
2909
|
],
|
|
2792
2910
|
'eslint/constructor-super': [2],
|
|
2911
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
2793
2912
|
'eslint/for-direction': [2],
|
|
2794
2913
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
2795
2914
|
'import/default': [2],
|
|
@@ -2801,20 +2920,7 @@ export default {
|
|
|
2801
2920
|
'import/no-named-as-default': [1],
|
|
2802
2921
|
'import/no-named-as-default-member': [1],
|
|
2803
2922
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
2804
|
-
'
|
|
2805
|
-
2,
|
|
2806
|
-
{
|
|
2807
|
-
'newlines-between': 'always',
|
|
2808
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
2809
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
2810
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
2811
|
-
distinctGroup: true,
|
|
2812
|
-
sortTypesGroup: false,
|
|
2813
|
-
named: false,
|
|
2814
|
-
warnOnUnassignedImports: false,
|
|
2815
|
-
},
|
|
2816
|
-
],
|
|
2817
|
-
'eslint-js/newline-before-return': [2],
|
|
2923
|
+
'eslint/max-depth': [1, 4],
|
|
2818
2924
|
'eslint/no-async-promise-executor': [2],
|
|
2819
2925
|
'eslint/no-case-declarations': [2],
|
|
2820
2926
|
'eslint/no-class-assign': [2],
|
|
@@ -2832,6 +2938,7 @@ export default {
|
|
|
2832
2938
|
'eslint/no-dupe-else-if': [2],
|
|
2833
2939
|
'eslint/no-dupe-keys': [2],
|
|
2834
2940
|
'eslint/no-duplicate-case': [2],
|
|
2941
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
2835
2942
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
2836
2943
|
'eslint/no-empty-character-class': [2],
|
|
2837
2944
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -2908,45 +3015,10 @@ export default {
|
|
|
2908
3015
|
'react/static-components': [2],
|
|
2909
3016
|
'react/unsupported-syntax': [1],
|
|
2910
3017
|
'react/use-memo': [2],
|
|
2911
|
-
'react-js/boolean-prop-naming': [2],
|
|
2912
|
-
'react/button-has-type': [2],
|
|
2913
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
2914
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
2915
|
-
'react-js/destructuring-assignment': [2],
|
|
2916
|
-
'react/display-name': [2],
|
|
2917
|
-
'react/function-component-definition': [
|
|
2918
|
-
2,
|
|
2919
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
2920
|
-
],
|
|
2921
|
-
'react/hook-use-state': [2],
|
|
2922
|
-
'react/jsx-boolean-value': [2],
|
|
2923
|
-
'react/jsx-fragments': [2],
|
|
2924
|
-
'react/jsx-handler-names': [2],
|
|
2925
|
-
'react/jsx-key': [2],
|
|
2926
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
2927
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
2928
|
-
'react/jsx-no-duplicate-props': [2],
|
|
2929
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
2930
|
-
'react/jsx-no-target-blank': [2],
|
|
2931
|
-
'react/jsx-no-undef': [2],
|
|
2932
|
-
'react/jsx-no-useless-fragment': [2],
|
|
2933
|
-
'react/no-children-prop': [2],
|
|
2934
|
-
'react/no-danger-with-children': [2],
|
|
2935
|
-
'react-js/no-deprecated': [2],
|
|
2936
|
-
'react/no-direct-mutation-state': [2],
|
|
2937
|
-
'react/no-find-dom-node': [2],
|
|
2938
|
-
'react/no-is-mounted': [2],
|
|
2939
|
-
'react/no-multi-comp': [2],
|
|
2940
|
-
'react/no-render-return-value': [2],
|
|
2941
|
-
'react/no-string-refs': [2],
|
|
2942
|
-
'react/no-unescaped-entities': [2],
|
|
2943
|
-
'react/no-unknown-property': [2],
|
|
2944
|
-
'react-js/prop-types': [2],
|
|
2945
|
-
'react/require-render-return': [2],
|
|
2946
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
2947
3018
|
'eslint/require-yield': [2],
|
|
2948
3019
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2949
3020
|
'sonarjs/async-test-assertions': [2],
|
|
3021
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2950
3022
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2951
3023
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2952
3024
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -3009,14 +3081,17 @@ export default {
|
|
|
3009
3081
|
'sonarjs/no-clear-text-protocols': [2],
|
|
3010
3082
|
'sonarjs/no-code-after-done': [2],
|
|
3011
3083
|
'sonarjs/no-dead-store': [2],
|
|
3084
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
3012
3085
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
3013
3086
|
'sonarjs/no-default-utility-imports': [2],
|
|
3014
3087
|
'sonarjs/no-delete-var': [2],
|
|
3015
3088
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
3089
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
3016
3090
|
'sonarjs/no-duplicate-test-title': [2],
|
|
3017
3091
|
'sonarjs/no-duplicated-branches': [2],
|
|
3018
3092
|
'sonarjs/no-element-overwrite': [2],
|
|
3019
3093
|
'sonarjs/no-empty-collection': [2],
|
|
3094
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
3020
3095
|
'sonarjs/no-empty-test-file': [2],
|
|
3021
3096
|
'sonarjs/no-empty-test-title': [2],
|
|
3022
3097
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -3049,10 +3124,10 @@ export default {
|
|
|
3049
3124
|
'sonarjs/no-labels': [2],
|
|
3050
3125
|
'sonarjs/no-literal-call': [2],
|
|
3051
3126
|
'sonarjs/no-mime-sniff': [2],
|
|
3052
|
-
'sonarjs/no-
|
|
3127
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
3053
3128
|
'sonarjs/no-nested-assignment': [2],
|
|
3054
3129
|
'sonarjs/no-nested-conditional': [2],
|
|
3055
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
3130
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
3056
3131
|
'sonarjs/no-nested-template-literals': [2],
|
|
3057
3132
|
'sonarjs/no-os-command-from-path': [2],
|
|
3058
3133
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -3076,12 +3151,17 @@ export default {
|
|
|
3076
3151
|
'sonarjs/no-useless-catch': [2],
|
|
3077
3152
|
'sonarjs/no-useless-increment': [2],
|
|
3078
3153
|
'sonarjs/no-useless-react-setstate': [2],
|
|
3154
|
+
'sonarjs/no-vue-class-component': [2],
|
|
3155
|
+
'sonarjs/no-vue-mixins': [2],
|
|
3079
3156
|
'sonarjs/no-weak-cipher': [2],
|
|
3080
3157
|
'sonarjs/no-weak-keys': [2],
|
|
3081
3158
|
'sonarjs/non-existent-operator': [2],
|
|
3082
3159
|
'sonarjs/object-alt-content': [2],
|
|
3083
3160
|
'sonarjs/parameterized-tests': [2],
|
|
3161
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
3084
3162
|
'sonarjs/prefer-default-last': [2],
|
|
3163
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
3164
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
3085
3165
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
3086
3166
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
3087
3167
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -3104,12 +3184,15 @@ export default {
|
|
|
3104
3184
|
'sonarjs/table-header': [2],
|
|
3105
3185
|
'sonarjs/table-header-reference': [2],
|
|
3106
3186
|
'sonarjs/test-check-exception': [2],
|
|
3187
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
3188
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
3107
3189
|
'sonarjs/todo-tag': [1],
|
|
3108
3190
|
'sonarjs/unverified-certificate': [2],
|
|
3109
3191
|
'sonarjs/unverified-hostname': [2],
|
|
3110
3192
|
'sonarjs/updated-const-var': [2],
|
|
3111
3193
|
'sonarjs/updated-loop-counter': [2],
|
|
3112
3194
|
'sonarjs/use-type-alias': [2],
|
|
3195
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
3113
3196
|
'sonarjs/weak-ssl': [2],
|
|
3114
3197
|
'sonarjs/x-powered-by': [2],
|
|
3115
3198
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -3157,7 +3240,6 @@ export default {
|
|
|
3157
3240
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
3158
3241
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
3159
3242
|
'unicorn/consistent-date-clone': [2],
|
|
3160
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
3161
3243
|
'unicorn/consistent-empty-array-spread': [2],
|
|
3162
3244
|
'unicorn/consistent-existence-index-check': [2],
|
|
3163
3245
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -3192,22 +3274,6 @@ export default {
|
|
|
3192
3274
|
],
|
|
3193
3275
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
3194
3276
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
3195
|
-
'unicorn-js/name-replacements': [
|
|
3196
|
-
2,
|
|
3197
|
-
{
|
|
3198
|
-
replacements: {
|
|
3199
|
-
dev: false,
|
|
3200
|
-
prod: false,
|
|
3201
|
-
props: false,
|
|
3202
|
-
ref: false,
|
|
3203
|
-
refs: false,
|
|
3204
|
-
args: false,
|
|
3205
|
-
params: false,
|
|
3206
|
-
utils: false,
|
|
3207
|
-
env: false,
|
|
3208
|
-
},
|
|
3209
|
-
},
|
|
3210
|
-
],
|
|
3211
3277
|
'unicorn/new-for-builtins': [2],
|
|
3212
3278
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
3213
3279
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -3316,7 +3382,6 @@ export default {
|
|
|
3316
3382
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
3317
3383
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
3318
3384
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
3319
|
-
'unicorn-js/no-unused-properties': [2],
|
|
3320
3385
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
3321
3386
|
'unicorn-js/no-useless-coercion': [2],
|
|
3322
3387
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -3573,16 +3638,16 @@ export default {
|
|
|
3573
3638
|
},
|
|
3574
3639
|
},
|
|
3575
3640
|
overrides: [
|
|
3576
|
-
{ files: ['**/*.js'], profile: '
|
|
3577
|
-
{ files: ['**/*.ts'], profile: '
|
|
3578
|
-
{ files: ['**/*.cjs'], profile: '
|
|
3579
|
-
{ files: ['**/*.cts'], profile: '
|
|
3580
|
-
{ files: ['**/*.jsx', '**/*.mjs'], profile: '
|
|
3581
|
-
{ files: ['**/*.mts', '**/*.tsx'], profile: '
|
|
3582
|
-
{ files: ['**/*.vue'], profile: '
|
|
3583
|
-
{ files: ['**/*.d.ts'], profile: '
|
|
3584
|
-
{ files: ['**/*.svelte'], profile: '
|
|
3585
|
-
{ files: ['**/*.svelte.js'], profile: '
|
|
3586
|
-
{ files: ['**/*.svelte.ts'], profile: '
|
|
3641
|
+
{ files: ['**/*.js'], profile: '9ad9a340ab3e4101' },
|
|
3642
|
+
{ files: ['**/*.ts'], profile: 'a8bb79650fd474f5' },
|
|
3643
|
+
{ files: ['**/*.cjs'], profile: '9ad9a340ab3e4101' },
|
|
3644
|
+
{ files: ['**/*.cts'], profile: 'a8bb79650fd474f5' },
|
|
3645
|
+
{ files: ['**/*.jsx', '**/*.mjs'], profile: '9ad9a340ab3e4101' },
|
|
3646
|
+
{ files: ['**/*.mts', '**/*.tsx'], profile: 'a8bb79650fd474f5' },
|
|
3647
|
+
{ files: ['**/*.vue'], profile: 'e067f07f9f814053' },
|
|
3648
|
+
{ files: ['**/*.d.ts'], profile: 'a8bb79650fd474f5' },
|
|
3649
|
+
{ files: ['**/*.svelte'], profile: 'ebf8d75958ea4a39' },
|
|
3650
|
+
{ files: ['**/*.svelte.js'], profile: '9ad9a340ab3e4101' },
|
|
3651
|
+
{ files: ['**/*.svelte.ts'], profile: 'a8bb79650fd474f5' },
|
|
3587
3652
|
],
|
|
3588
3653
|
}
|