@st1ggy/linter-config 7.4.0 → 9.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 +101 -28
- package/data/linter-config-inventory.json +294 -128
- package/data/oxlint-config-inventory.json +913 -735
- package/data/oxlint-rule-map.json +4684 -1743
- package/data/oxlint-source-inventory.json +10529 -8546
- package/docs/OXLINT_RULE_MAPPING.md +197 -88
- package/docs/RULE_MAPPING.md +2 -2
- package/package.json +122 -18
- package/scripts/README.md +12 -5
- 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 +75 -20
- package/scripts/linter-init.mjs +5 -3
- package/src/eslint/configs/config.import.js +1 -1
- package/src/eslint/configs/config.react.js +17 -24
- package/src/eslint/configs/import-plugin.js +48 -0
- package/src/eslint/configs/svelte-stack.js +4 -11
- 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 +32 -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 +16 -0
- package/src/oxfmt/oxfmt.config.svelte.js +3 -0
- package/src/oxlint/configs/config.astro.js +89 -42
- package/src/oxlint/configs/config.common.js +73 -28
- package/src/oxlint/configs/config.next.js +330 -173
- package/src/oxlint/configs/config.react.js +330 -173
- package/src/oxlint/configs/config.solid.js +105 -47
- package/src/oxlint/configs/config.svelte.js +85 -61
- 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 +30 -5
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Generated by scripts/oxlint-generate.mjs.
|
|
2
2
|
/* eslint-disable unicorn/prefer-string-raw, unicorn/numeric-separators-style -- Serialized rule options. */
|
|
3
3
|
export default {
|
|
4
|
+
formatter: 'oxfmt',
|
|
4
5
|
plugins: ['eslint', 'import', 'nextjs', 'react', 'typescript', 'unicorn'],
|
|
5
6
|
jsPlugins: [
|
|
6
7
|
'eslint-js',
|
|
7
8
|
'import-x-js',
|
|
8
9
|
'next-js',
|
|
9
|
-
'prettier',
|
|
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
|
+
e4e5c8f83eb28e1c: {
|
|
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],
|
|
@@ -61,6 +125,7 @@ export default {
|
|
|
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
127
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
128
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
64
129
|
'stylistic-js/jsx-tag-spacing': [
|
|
65
130
|
2,
|
|
66
131
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -231,7 +296,6 @@ export default {
|
|
|
231
296
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
232
297
|
'eslint/prefer-template': [2],
|
|
233
298
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
234
|
-
'prettier/prettier': [2],
|
|
235
299
|
'react-hooks-js/config': [2],
|
|
236
300
|
'react/error-boundaries': [2],
|
|
237
301
|
'react/exhaustive-deps': [1],
|
|
@@ -248,45 +312,10 @@ export default {
|
|
|
248
312
|
'react/static-components': [2],
|
|
249
313
|
'react/unsupported-syntax': [1],
|
|
250
314
|
'react/use-memo': [2],
|
|
251
|
-
'react-js/boolean-prop-naming': [2],
|
|
252
|
-
'react/button-has-type': [2],
|
|
253
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
254
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
255
|
-
'react-js/destructuring-assignment': [2],
|
|
256
|
-
'react/display-name': [2],
|
|
257
|
-
'react/function-component-definition': [
|
|
258
|
-
2,
|
|
259
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
260
|
-
],
|
|
261
|
-
'react/hook-use-state': [2],
|
|
262
|
-
'react/jsx-boolean-value': [2],
|
|
263
|
-
'react/jsx-fragments': [2],
|
|
264
|
-
'react/jsx-handler-names': [2],
|
|
265
|
-
'react/jsx-key': [2],
|
|
266
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
267
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
268
|
-
'react/jsx-no-duplicate-props': [2],
|
|
269
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
270
|
-
'react/jsx-no-target-blank': [2],
|
|
271
|
-
'react/jsx-no-undef': [2],
|
|
272
|
-
'react/jsx-no-useless-fragment': [2],
|
|
273
|
-
'react/no-children-prop': [2],
|
|
274
|
-
'react/no-danger-with-children': [2],
|
|
275
|
-
'react-js/no-deprecated': [2],
|
|
276
|
-
'react/no-direct-mutation-state': [2],
|
|
277
|
-
'react/no-find-dom-node': [2],
|
|
278
|
-
'react/no-is-mounted': [2],
|
|
279
|
-
'react/no-multi-comp': [2],
|
|
280
|
-
'react/no-render-return-value': [2],
|
|
281
|
-
'react/no-string-refs': [2],
|
|
282
|
-
'react/no-unescaped-entities': [2],
|
|
283
|
-
'react/no-unknown-property': [2],
|
|
284
|
-
'react-js/prop-types': [2],
|
|
285
|
-
'react/require-render-return': [2],
|
|
286
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
287
315
|
'eslint/require-yield': [2],
|
|
288
316
|
'sonarjs/assertions-in-test-cases': [2],
|
|
289
317
|
'sonarjs/async-test-assertions': [2],
|
|
318
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
290
319
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
291
320
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
292
321
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -349,14 +378,17 @@ export default {
|
|
|
349
378
|
'sonarjs/no-clear-text-protocols': [2],
|
|
350
379
|
'sonarjs/no-code-after-done': [2],
|
|
351
380
|
'sonarjs/no-dead-store': [2],
|
|
381
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
352
382
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
353
383
|
'sonarjs/no-default-utility-imports': [2],
|
|
354
384
|
'sonarjs/no-delete-var': [2],
|
|
355
385
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
386
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
356
387
|
'sonarjs/no-duplicate-test-title': [2],
|
|
357
388
|
'sonarjs/no-duplicated-branches': [2],
|
|
358
389
|
'sonarjs/no-element-overwrite': [2],
|
|
359
390
|
'sonarjs/no-empty-collection': [2],
|
|
391
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
360
392
|
'sonarjs/no-empty-test-file': [2],
|
|
361
393
|
'sonarjs/no-empty-test-title': [2],
|
|
362
394
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -389,10 +421,10 @@ export default {
|
|
|
389
421
|
'sonarjs/no-labels': [2],
|
|
390
422
|
'sonarjs/no-literal-call': [2],
|
|
391
423
|
'sonarjs/no-mime-sniff': [2],
|
|
392
|
-
'sonarjs/no-
|
|
424
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
393
425
|
'sonarjs/no-nested-assignment': [2],
|
|
394
426
|
'sonarjs/no-nested-conditional': [2],
|
|
395
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
427
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
396
428
|
'sonarjs/no-nested-template-literals': [2],
|
|
397
429
|
'sonarjs/no-os-command-from-path': [2],
|
|
398
430
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -416,12 +448,17 @@ export default {
|
|
|
416
448
|
'sonarjs/no-useless-catch': [2],
|
|
417
449
|
'sonarjs/no-useless-increment': [2],
|
|
418
450
|
'sonarjs/no-useless-react-setstate': [2],
|
|
451
|
+
'sonarjs/no-vue-class-component': [2],
|
|
452
|
+
'sonarjs/no-vue-mixins': [2],
|
|
419
453
|
'sonarjs/no-weak-cipher': [2],
|
|
420
454
|
'sonarjs/no-weak-keys': [2],
|
|
421
455
|
'sonarjs/non-existent-operator': [2],
|
|
422
456
|
'sonarjs/object-alt-content': [2],
|
|
423
457
|
'sonarjs/parameterized-tests': [2],
|
|
458
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
424
459
|
'sonarjs/prefer-default-last': [2],
|
|
460
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
461
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
425
462
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
426
463
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
427
464
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -444,12 +481,15 @@ export default {
|
|
|
444
481
|
'sonarjs/table-header': [2],
|
|
445
482
|
'sonarjs/table-header-reference': [2],
|
|
446
483
|
'sonarjs/test-check-exception': [2],
|
|
484
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
485
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
447
486
|
'sonarjs/todo-tag': [1],
|
|
448
487
|
'sonarjs/unverified-certificate': [2],
|
|
449
488
|
'sonarjs/unverified-hostname': [2],
|
|
450
489
|
'sonarjs/updated-const-var': [2],
|
|
451
490
|
'sonarjs/updated-loop-counter': [2],
|
|
452
491
|
'sonarjs/use-type-alias': [2],
|
|
492
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
453
493
|
'sonarjs/weak-ssl': [2],
|
|
454
494
|
'sonarjs/x-powered-by': [2],
|
|
455
495
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -911,8 +951,71 @@ export default {
|
|
|
911
951
|
WeakSet: 'readonly',
|
|
912
952
|
},
|
|
913
953
|
},
|
|
914
|
-
'
|
|
954
|
+
'8cf2ca7f802794be': {
|
|
915
955
|
rules: {
|
|
956
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
957
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
958
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
959
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
960
|
+
'react-modern/dom-no-hydrate': [2],
|
|
961
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
962
|
+
'react-modern/dom-no-render': [2],
|
|
963
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
964
|
+
'react-modern/dom-no-script-url': [1],
|
|
965
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
966
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
967
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
968
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
969
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
970
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
971
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
972
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
973
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
974
|
+
'react-modern/jsx-no-namespace': [2],
|
|
975
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
976
|
+
'react-modern/naming-convention-context-name': [1],
|
|
977
|
+
'react-modern/naming-convention-id-name': [1],
|
|
978
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
979
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
980
|
+
'react/no-array-index-key': [1],
|
|
981
|
+
'react-modern/no-children-count': [1],
|
|
982
|
+
'react-modern/no-children-for-each': [1],
|
|
983
|
+
'react-modern/no-children-map': [1],
|
|
984
|
+
'react-modern/no-children-only': [1],
|
|
985
|
+
'react-modern/no-children-to-array': [1],
|
|
986
|
+
'react/no-clone-element': [1],
|
|
987
|
+
'react-modern/no-component-will-mount': [2],
|
|
988
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
989
|
+
'react-modern/no-component-will-update': [2],
|
|
990
|
+
'react-modern/no-context-provider': [1],
|
|
991
|
+
'react-modern/no-create-ref': [2],
|
|
992
|
+
'react/no-direct-mutation-state': [2],
|
|
993
|
+
'react-modern/no-forward-ref': [1],
|
|
994
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
995
|
+
'react-modern/no-missing-key': [2],
|
|
996
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
997
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
998
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
999
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
1000
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
1001
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
1002
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
1003
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
1004
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
1005
|
+
'react-modern/no-unstable-context-value': [2],
|
|
1006
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
1007
|
+
'react-modern/no-use-context': [1],
|
|
1008
|
+
'react-modern/rsc-function-definition': [2],
|
|
1009
|
+
'react-modern/use-state': [
|
|
1010
|
+
2,
|
|
1011
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
1012
|
+
],
|
|
1013
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
1014
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
1015
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
1016
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
1017
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
1018
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
916
1019
|
'nextjs/google-font-display': [1],
|
|
917
1020
|
'nextjs/google-font-preconnect': [1],
|
|
918
1021
|
'nextjs/inline-script-id': [2],
|
|
@@ -950,6 +1053,7 @@ export default {
|
|
|
950
1053
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
951
1054
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
952
1055
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1056
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
953
1057
|
'stylistic-js/jsx-tag-spacing': [
|
|
954
1058
|
2,
|
|
955
1059
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1120,7 +1224,6 @@ export default {
|
|
|
1120
1224
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
1121
1225
|
'eslint/prefer-template': [2],
|
|
1122
1226
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
1123
|
-
'prettier/prettier': [2],
|
|
1124
1227
|
'react-hooks-js/config': [2],
|
|
1125
1228
|
'react/error-boundaries': [2],
|
|
1126
1229
|
'react/exhaustive-deps': [1],
|
|
@@ -1137,45 +1240,10 @@ export default {
|
|
|
1137
1240
|
'react/static-components': [2],
|
|
1138
1241
|
'react/unsupported-syntax': [1],
|
|
1139
1242
|
'react/use-memo': [2],
|
|
1140
|
-
'react-js/boolean-prop-naming': [2],
|
|
1141
|
-
'react/button-has-type': [2],
|
|
1142
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1143
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1144
|
-
'react-js/destructuring-assignment': [2],
|
|
1145
|
-
'react/display-name': [2],
|
|
1146
|
-
'react/function-component-definition': [
|
|
1147
|
-
2,
|
|
1148
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1149
|
-
],
|
|
1150
|
-
'react/hook-use-state': [2],
|
|
1151
|
-
'react/jsx-boolean-value': [2],
|
|
1152
|
-
'react/jsx-fragments': [2],
|
|
1153
|
-
'react/jsx-handler-names': [2],
|
|
1154
|
-
'react/jsx-key': [2],
|
|
1155
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1156
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1157
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1158
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1159
|
-
'react/jsx-no-target-blank': [2],
|
|
1160
|
-
'react/jsx-no-undef': [2],
|
|
1161
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1162
|
-
'react/no-children-prop': [2],
|
|
1163
|
-
'react/no-danger-with-children': [2],
|
|
1164
|
-
'react-js/no-deprecated': [2],
|
|
1165
|
-
'react/no-direct-mutation-state': [2],
|
|
1166
|
-
'react/no-find-dom-node': [2],
|
|
1167
|
-
'react/no-is-mounted': [2],
|
|
1168
|
-
'react/no-multi-comp': [2],
|
|
1169
|
-
'react/no-render-return-value': [2],
|
|
1170
|
-
'react/no-string-refs': [2],
|
|
1171
|
-
'react/no-unescaped-entities': [2],
|
|
1172
|
-
'react/no-unknown-property': [2],
|
|
1173
|
-
'react-js/prop-types': [2],
|
|
1174
|
-
'react/require-render-return': [2],
|
|
1175
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1176
1243
|
'eslint/require-yield': [2],
|
|
1177
1244
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1178
1245
|
'sonarjs/async-test-assertions': [2],
|
|
1246
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1179
1247
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1180
1248
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
1181
1249
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1238,14 +1306,17 @@ export default {
|
|
|
1238
1306
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1239
1307
|
'sonarjs/no-code-after-done': [2],
|
|
1240
1308
|
'sonarjs/no-dead-store': [2],
|
|
1309
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1241
1310
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1242
1311
|
'sonarjs/no-default-utility-imports': [2],
|
|
1243
1312
|
'sonarjs/no-delete-var': [2],
|
|
1244
1313
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1314
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1245
1315
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1246
1316
|
'sonarjs/no-duplicated-branches': [2],
|
|
1247
1317
|
'sonarjs/no-element-overwrite': [2],
|
|
1248
1318
|
'sonarjs/no-empty-collection': [2],
|
|
1319
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1249
1320
|
'sonarjs/no-empty-test-file': [2],
|
|
1250
1321
|
'sonarjs/no-empty-test-title': [2],
|
|
1251
1322
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1278,10 +1349,10 @@ export default {
|
|
|
1278
1349
|
'sonarjs/no-labels': [2],
|
|
1279
1350
|
'sonarjs/no-literal-call': [2],
|
|
1280
1351
|
'sonarjs/no-mime-sniff': [2],
|
|
1281
|
-
'sonarjs/no-
|
|
1352
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1282
1353
|
'sonarjs/no-nested-assignment': [2],
|
|
1283
1354
|
'sonarjs/no-nested-conditional': [2],
|
|
1284
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1355
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1285
1356
|
'sonarjs/no-nested-template-literals': [2],
|
|
1286
1357
|
'sonarjs/no-os-command-from-path': [2],
|
|
1287
1358
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1305,12 +1376,17 @@ export default {
|
|
|
1305
1376
|
'sonarjs/no-useless-catch': [2],
|
|
1306
1377
|
'sonarjs/no-useless-increment': [2],
|
|
1307
1378
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1379
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1380
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1308
1381
|
'sonarjs/no-weak-cipher': [2],
|
|
1309
1382
|
'sonarjs/no-weak-keys': [2],
|
|
1310
1383
|
'sonarjs/non-existent-operator': [2],
|
|
1311
1384
|
'sonarjs/object-alt-content': [2],
|
|
1312
1385
|
'sonarjs/parameterized-tests': [2],
|
|
1386
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1313
1387
|
'sonarjs/prefer-default-last': [2],
|
|
1388
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1389
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1314
1390
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1315
1391
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1316
1392
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -1333,12 +1409,15 @@ export default {
|
|
|
1333
1409
|
'sonarjs/table-header': [2],
|
|
1334
1410
|
'sonarjs/table-header-reference': [2],
|
|
1335
1411
|
'sonarjs/test-check-exception': [2],
|
|
1412
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1413
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1336
1414
|
'sonarjs/todo-tag': [1],
|
|
1337
1415
|
'sonarjs/unverified-certificate': [2],
|
|
1338
1416
|
'sonarjs/unverified-hostname': [2],
|
|
1339
1417
|
'sonarjs/updated-const-var': [2],
|
|
1340
1418
|
'sonarjs/updated-loop-counter': [2],
|
|
1341
1419
|
'sonarjs/use-type-alias': [2],
|
|
1420
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1342
1421
|
'sonarjs/weak-ssl': [2],
|
|
1343
1422
|
'sonarjs/x-powered-by': [2],
|
|
1344
1423
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1800,8 +1879,71 @@ export default {
|
|
|
1800
1879
|
WeakSet: 'readonly',
|
|
1801
1880
|
},
|
|
1802
1881
|
},
|
|
1803
|
-
|
|
1882
|
+
'69e34eac99ac37ab': {
|
|
1804
1883
|
rules: {
|
|
1884
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
1885
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
1886
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
1887
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
1888
|
+
'react-modern/dom-no-hydrate': [2],
|
|
1889
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
1890
|
+
'react-modern/dom-no-render': [2],
|
|
1891
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
1892
|
+
'react-modern/dom-no-script-url': [1],
|
|
1893
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
1894
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
1895
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
1896
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
1897
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
1898
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
1899
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
1900
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
1901
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
1902
|
+
'react-modern/jsx-no-namespace': [2],
|
|
1903
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
1904
|
+
'react-modern/naming-convention-context-name': [1],
|
|
1905
|
+
'react-modern/naming-convention-id-name': [1],
|
|
1906
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
1907
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
1908
|
+
'react/no-array-index-key': [1],
|
|
1909
|
+
'react-modern/no-children-count': [1],
|
|
1910
|
+
'react-modern/no-children-for-each': [1],
|
|
1911
|
+
'react-modern/no-children-map': [1],
|
|
1912
|
+
'react-modern/no-children-only': [1],
|
|
1913
|
+
'react-modern/no-children-to-array': [1],
|
|
1914
|
+
'react/no-clone-element': [1],
|
|
1915
|
+
'react-modern/no-component-will-mount': [2],
|
|
1916
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
1917
|
+
'react-modern/no-component-will-update': [2],
|
|
1918
|
+
'react-modern/no-context-provider': [1],
|
|
1919
|
+
'react-modern/no-create-ref': [2],
|
|
1920
|
+
'react/no-direct-mutation-state': [2],
|
|
1921
|
+
'react-modern/no-forward-ref': [1],
|
|
1922
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
1923
|
+
'react-modern/no-missing-key': [2],
|
|
1924
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
1925
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
1926
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
1927
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
1928
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
1929
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
1930
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
1931
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
1932
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
1933
|
+
'react-modern/no-unstable-context-value': [2],
|
|
1934
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
1935
|
+
'react-modern/no-use-context': [1],
|
|
1936
|
+
'react-modern/rsc-function-definition': [2],
|
|
1937
|
+
'react-modern/use-state': [
|
|
1938
|
+
2,
|
|
1939
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
1940
|
+
],
|
|
1941
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
1942
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
1943
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
1944
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
1945
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
1946
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
1805
1947
|
'nextjs/google-font-display': [1],
|
|
1806
1948
|
'nextjs/google-font-preconnect': [1],
|
|
1807
1949
|
'nextjs/inline-script-id': [2],
|
|
@@ -1839,6 +1981,7 @@ export default {
|
|
|
1839
1981
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
1840
1982
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
1841
1983
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1984
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
1842
1985
|
'stylistic-js/jsx-tag-spacing': [
|
|
1843
1986
|
2,
|
|
1844
1987
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2009,7 +2152,6 @@ export default {
|
|
|
2009
2152
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
2010
2153
|
'eslint/prefer-template': [2],
|
|
2011
2154
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
2012
|
-
'prettier/prettier': [2],
|
|
2013
2155
|
'react-hooks-js/config': [2],
|
|
2014
2156
|
'react/error-boundaries': [2],
|
|
2015
2157
|
'react/exhaustive-deps': [1],
|
|
@@ -2026,45 +2168,10 @@ export default {
|
|
|
2026
2168
|
'react/static-components': [2],
|
|
2027
2169
|
'react/unsupported-syntax': [1],
|
|
2028
2170
|
'react/use-memo': [2],
|
|
2029
|
-
'react-js/boolean-prop-naming': [2],
|
|
2030
|
-
'react/button-has-type': [2],
|
|
2031
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
2032
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
2033
|
-
'react-js/destructuring-assignment': [2],
|
|
2034
|
-
'react/display-name': [2],
|
|
2035
|
-
'react/function-component-definition': [
|
|
2036
|
-
2,
|
|
2037
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
2038
|
-
],
|
|
2039
|
-
'react/hook-use-state': [2],
|
|
2040
|
-
'react/jsx-boolean-value': [2],
|
|
2041
|
-
'react/jsx-fragments': [2],
|
|
2042
|
-
'react/jsx-handler-names': [2],
|
|
2043
|
-
'react/jsx-key': [2],
|
|
2044
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
2045
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
2046
|
-
'react/jsx-no-duplicate-props': [2],
|
|
2047
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
2048
|
-
'react/jsx-no-target-blank': [2],
|
|
2049
|
-
'react/jsx-no-undef': [2],
|
|
2050
|
-
'react/jsx-no-useless-fragment': [2],
|
|
2051
|
-
'react/no-children-prop': [2],
|
|
2052
|
-
'react/no-danger-with-children': [2],
|
|
2053
|
-
'react-js/no-deprecated': [2],
|
|
2054
|
-
'react/no-direct-mutation-state': [2],
|
|
2055
|
-
'react/no-find-dom-node': [2],
|
|
2056
|
-
'react/no-is-mounted': [2],
|
|
2057
|
-
'react/no-multi-comp': [2],
|
|
2058
|
-
'react/no-render-return-value': [2],
|
|
2059
|
-
'react/no-string-refs': [2],
|
|
2060
|
-
'react/no-unescaped-entities': [2],
|
|
2061
|
-
'react/no-unknown-property': [2],
|
|
2062
|
-
'react-js/prop-types': [2],
|
|
2063
|
-
'react/require-render-return': [2],
|
|
2064
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
2065
2171
|
'eslint/require-yield': [2],
|
|
2066
2172
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2067
2173
|
'sonarjs/async-test-assertions': [2],
|
|
2174
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2068
2175
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2069
2176
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2070
2177
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2127,14 +2234,17 @@ export default {
|
|
|
2127
2234
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2128
2235
|
'sonarjs/no-code-after-done': [2],
|
|
2129
2236
|
'sonarjs/no-dead-store': [2],
|
|
2237
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2130
2238
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2131
2239
|
'sonarjs/no-default-utility-imports': [2],
|
|
2132
2240
|
'sonarjs/no-delete-var': [2],
|
|
2133
2241
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
2242
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2134
2243
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2135
2244
|
'sonarjs/no-duplicated-branches': [2],
|
|
2136
2245
|
'sonarjs/no-element-overwrite': [2],
|
|
2137
2246
|
'sonarjs/no-empty-collection': [2],
|
|
2247
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2138
2248
|
'sonarjs/no-empty-test-file': [2],
|
|
2139
2249
|
'sonarjs/no-empty-test-title': [2],
|
|
2140
2250
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2167,10 +2277,10 @@ export default {
|
|
|
2167
2277
|
'sonarjs/no-labels': [2],
|
|
2168
2278
|
'sonarjs/no-literal-call': [2],
|
|
2169
2279
|
'sonarjs/no-mime-sniff': [2],
|
|
2170
|
-
'sonarjs/no-
|
|
2280
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2171
2281
|
'sonarjs/no-nested-assignment': [2],
|
|
2172
2282
|
'sonarjs/no-nested-conditional': [2],
|
|
2173
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
2283
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2174
2284
|
'sonarjs/no-nested-template-literals': [2],
|
|
2175
2285
|
'sonarjs/no-os-command-from-path': [2],
|
|
2176
2286
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2194,12 +2304,17 @@ export default {
|
|
|
2194
2304
|
'sonarjs/no-useless-catch': [2],
|
|
2195
2305
|
'sonarjs/no-useless-increment': [2],
|
|
2196
2306
|
'sonarjs/no-useless-react-setstate': [2],
|
|
2307
|
+
'sonarjs/no-vue-class-component': [2],
|
|
2308
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2197
2309
|
'sonarjs/no-weak-cipher': [2],
|
|
2198
2310
|
'sonarjs/no-weak-keys': [2],
|
|
2199
2311
|
'sonarjs/non-existent-operator': [2],
|
|
2200
2312
|
'sonarjs/object-alt-content': [2],
|
|
2201
2313
|
'sonarjs/parameterized-tests': [2],
|
|
2314
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2202
2315
|
'sonarjs/prefer-default-last': [2],
|
|
2316
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
2317
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2203
2318
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2204
2319
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2205
2320
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -2222,12 +2337,15 @@ export default {
|
|
|
2222
2337
|
'sonarjs/table-header': [2],
|
|
2223
2338
|
'sonarjs/table-header-reference': [2],
|
|
2224
2339
|
'sonarjs/test-check-exception': [2],
|
|
2340
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
2341
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
2225
2342
|
'sonarjs/todo-tag': [1],
|
|
2226
2343
|
'sonarjs/unverified-certificate': [2],
|
|
2227
2344
|
'sonarjs/unverified-hostname': [2],
|
|
2228
2345
|
'sonarjs/updated-const-var': [2],
|
|
2229
2346
|
'sonarjs/updated-loop-counter': [2],
|
|
2230
2347
|
'sonarjs/use-type-alias': [2],
|
|
2348
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
2231
2349
|
'sonarjs/weak-ssl': [2],
|
|
2232
2350
|
'sonarjs/x-powered-by': [2],
|
|
2233
2351
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -2689,8 +2807,71 @@ export default {
|
|
|
2689
2807
|
WeakSet: 'readonly',
|
|
2690
2808
|
},
|
|
2691
2809
|
},
|
|
2692
|
-
|
|
2810
|
+
ea2e0f074d238b08: {
|
|
2693
2811
|
rules: {
|
|
2812
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
2813
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
2814
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
2815
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
2816
|
+
'react-modern/dom-no-hydrate': [2],
|
|
2817
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
2818
|
+
'react-modern/dom-no-render': [2],
|
|
2819
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
2820
|
+
'react-modern/dom-no-script-url': [1],
|
|
2821
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
2822
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
2823
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
2824
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
2825
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
2826
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
2827
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
2828
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
2829
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
2830
|
+
'react-modern/jsx-no-namespace': [2],
|
|
2831
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
2832
|
+
'react-modern/naming-convention-context-name': [1],
|
|
2833
|
+
'react-modern/naming-convention-id-name': [1],
|
|
2834
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
2835
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
2836
|
+
'react/no-array-index-key': [1],
|
|
2837
|
+
'react-modern/no-children-count': [1],
|
|
2838
|
+
'react-modern/no-children-for-each': [1],
|
|
2839
|
+
'react-modern/no-children-map': [1],
|
|
2840
|
+
'react-modern/no-children-only': [1],
|
|
2841
|
+
'react-modern/no-children-to-array': [1],
|
|
2842
|
+
'react/no-clone-element': [1],
|
|
2843
|
+
'react-modern/no-component-will-mount': [2],
|
|
2844
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
2845
|
+
'react-modern/no-component-will-update': [2],
|
|
2846
|
+
'react-modern/no-context-provider': [1],
|
|
2847
|
+
'react-modern/no-create-ref': [2],
|
|
2848
|
+
'react/no-direct-mutation-state': [2],
|
|
2849
|
+
'react-modern/no-forward-ref': [1],
|
|
2850
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
2851
|
+
'react-modern/no-missing-key': [2],
|
|
2852
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
2853
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
2854
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
2855
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
2856
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
2857
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
2858
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
2859
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
2860
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
2861
|
+
'react-modern/no-unstable-context-value': [2],
|
|
2862
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
2863
|
+
'react-modern/no-use-context': [1],
|
|
2864
|
+
'react-modern/rsc-function-definition': [2],
|
|
2865
|
+
'react-modern/use-state': [
|
|
2866
|
+
2,
|
|
2867
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
2868
|
+
],
|
|
2869
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
2870
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
2871
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
2872
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
2873
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
2874
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
2694
2875
|
'nextjs/google-font-display': [1],
|
|
2695
2876
|
'nextjs/google-font-preconnect': [1],
|
|
2696
2877
|
'nextjs/inline-script-id': [2],
|
|
@@ -2728,6 +2909,7 @@ export default {
|
|
|
2728
2909
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
2729
2910
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
2730
2911
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
2912
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
2731
2913
|
'stylistic-js/jsx-tag-spacing': [
|
|
2732
2914
|
2,
|
|
2733
2915
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2895,7 +3077,6 @@ export default {
|
|
|
2895
3077
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
2896
3078
|
'eslint/prefer-template': [2],
|
|
2897
3079
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
2898
|
-
'prettier/prettier': 'off',
|
|
2899
3080
|
'react-hooks-js/config': [2],
|
|
2900
3081
|
'react/error-boundaries': [2],
|
|
2901
3082
|
'react/exhaustive-deps': [1],
|
|
@@ -2912,45 +3093,10 @@ export default {
|
|
|
2912
3093
|
'react/static-components': [2],
|
|
2913
3094
|
'react/unsupported-syntax': [1],
|
|
2914
3095
|
'react/use-memo': [2],
|
|
2915
|
-
'react-js/boolean-prop-naming': [2],
|
|
2916
|
-
'react/button-has-type': [2],
|
|
2917
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
2918
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
2919
|
-
'react-js/destructuring-assignment': [2],
|
|
2920
|
-
'react/display-name': [2],
|
|
2921
|
-
'react/function-component-definition': [
|
|
2922
|
-
2,
|
|
2923
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
2924
|
-
],
|
|
2925
|
-
'react/hook-use-state': [2],
|
|
2926
|
-
'react/jsx-boolean-value': [2],
|
|
2927
|
-
'react/jsx-fragments': [2],
|
|
2928
|
-
'react/jsx-handler-names': [2],
|
|
2929
|
-
'react/jsx-key': [2],
|
|
2930
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
2931
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
2932
|
-
'react/jsx-no-duplicate-props': [2],
|
|
2933
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
2934
|
-
'react/jsx-no-target-blank': [2],
|
|
2935
|
-
'react/jsx-no-undef': [2],
|
|
2936
|
-
'react/jsx-no-useless-fragment': [2],
|
|
2937
|
-
'react/no-children-prop': [2],
|
|
2938
|
-
'react/no-danger-with-children': [2],
|
|
2939
|
-
'react-js/no-deprecated': [2],
|
|
2940
|
-
'react/no-direct-mutation-state': [2],
|
|
2941
|
-
'react/no-find-dom-node': [2],
|
|
2942
|
-
'react/no-is-mounted': [2],
|
|
2943
|
-
'react/no-multi-comp': [2],
|
|
2944
|
-
'react/no-render-return-value': [2],
|
|
2945
|
-
'react/no-string-refs': [2],
|
|
2946
|
-
'react/no-unescaped-entities': [2],
|
|
2947
|
-
'react/no-unknown-property': [2],
|
|
2948
|
-
'react-js/prop-types': [2],
|
|
2949
|
-
'react/require-render-return': [2],
|
|
2950
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
2951
3096
|
'eslint/require-yield': [2],
|
|
2952
3097
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2953
3098
|
'sonarjs/async-test-assertions': [2],
|
|
3099
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2954
3100
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2955
3101
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2956
3102
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -3013,14 +3159,17 @@ export default {
|
|
|
3013
3159
|
'sonarjs/no-clear-text-protocols': [2],
|
|
3014
3160
|
'sonarjs/no-code-after-done': [2],
|
|
3015
3161
|
'sonarjs/no-dead-store': [2],
|
|
3162
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
3016
3163
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
3017
3164
|
'sonarjs/no-default-utility-imports': [2],
|
|
3018
3165
|
'sonarjs/no-delete-var': [2],
|
|
3019
3166
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
3167
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
3020
3168
|
'sonarjs/no-duplicate-test-title': [2],
|
|
3021
3169
|
'sonarjs/no-duplicated-branches': [2],
|
|
3022
3170
|
'sonarjs/no-element-overwrite': [2],
|
|
3023
3171
|
'sonarjs/no-empty-collection': [2],
|
|
3172
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
3024
3173
|
'sonarjs/no-empty-test-file': [2],
|
|
3025
3174
|
'sonarjs/no-empty-test-title': [2],
|
|
3026
3175
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -3053,10 +3202,10 @@ export default {
|
|
|
3053
3202
|
'sonarjs/no-labels': [2],
|
|
3054
3203
|
'sonarjs/no-literal-call': [2],
|
|
3055
3204
|
'sonarjs/no-mime-sniff': [2],
|
|
3056
|
-
'sonarjs/no-
|
|
3205
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
3057
3206
|
'sonarjs/no-nested-assignment': [2],
|
|
3058
3207
|
'sonarjs/no-nested-conditional': [2],
|
|
3059
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
3208
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
3060
3209
|
'sonarjs/no-nested-template-literals': [2],
|
|
3061
3210
|
'sonarjs/no-os-command-from-path': [2],
|
|
3062
3211
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -3080,12 +3229,17 @@ export default {
|
|
|
3080
3229
|
'sonarjs/no-useless-catch': [2],
|
|
3081
3230
|
'sonarjs/no-useless-increment': [2],
|
|
3082
3231
|
'sonarjs/no-useless-react-setstate': [2],
|
|
3232
|
+
'sonarjs/no-vue-class-component': [2],
|
|
3233
|
+
'sonarjs/no-vue-mixins': [2],
|
|
3083
3234
|
'sonarjs/no-weak-cipher': [2],
|
|
3084
3235
|
'sonarjs/no-weak-keys': [2],
|
|
3085
3236
|
'sonarjs/non-existent-operator': [2],
|
|
3086
3237
|
'sonarjs/object-alt-content': [2],
|
|
3087
3238
|
'sonarjs/parameterized-tests': [2],
|
|
3239
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
3088
3240
|
'sonarjs/prefer-default-last': [2],
|
|
3241
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
3242
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
3089
3243
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
3090
3244
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
3091
3245
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -3108,12 +3262,15 @@ export default {
|
|
|
3108
3262
|
'sonarjs/table-header': [2],
|
|
3109
3263
|
'sonarjs/table-header-reference': [2],
|
|
3110
3264
|
'sonarjs/test-check-exception': [2],
|
|
3265
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
3266
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
3111
3267
|
'sonarjs/todo-tag': [1],
|
|
3112
3268
|
'sonarjs/unverified-certificate': [2],
|
|
3113
3269
|
'sonarjs/unverified-hostname': [2],
|
|
3114
3270
|
'sonarjs/updated-const-var': [2],
|
|
3115
3271
|
'sonarjs/updated-loop-counter': [2],
|
|
3116
3272
|
'sonarjs/use-type-alias': [2],
|
|
3273
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
3117
3274
|
'sonarjs/weak-ssl': [2],
|
|
3118
3275
|
'sonarjs/x-powered-by': [2],
|
|
3119
3276
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -3577,16 +3734,16 @@ export default {
|
|
|
3577
3734
|
},
|
|
3578
3735
|
},
|
|
3579
3736
|
overrides: [
|
|
3580
|
-
{ files: ['**/*.js'], profile: '
|
|
3581
|
-
{ files: ['**/*.ts'], profile: '
|
|
3582
|
-
{ files: ['**/*.cjs'], profile: '
|
|
3583
|
-
{ files: ['**/*.cts'], profile: '
|
|
3584
|
-
{ files: ['**/*.jsx', '**/*.mjs'], profile: '
|
|
3585
|
-
{ files: ['**/*.mts', '**/*.tsx'], profile: '
|
|
3586
|
-
{ files: ['**/*.vue'], profile: '
|
|
3587
|
-
{ files: ['**/*.d.ts'], profile: '
|
|
3588
|
-
{ files: ['**/*.svelte'], profile: '
|
|
3589
|
-
{ files: ['**/*.svelte.js'], profile: '
|
|
3590
|
-
{ files: ['**/*.svelte.ts'], profile: '
|
|
3737
|
+
{ files: ['**/*.js'], profile: 'e4e5c8f83eb28e1c' },
|
|
3738
|
+
{ files: ['**/*.ts'], profile: '8cf2ca7f802794be' },
|
|
3739
|
+
{ files: ['**/*.cjs'], profile: 'e4e5c8f83eb28e1c' },
|
|
3740
|
+
{ files: ['**/*.cts'], profile: '8cf2ca7f802794be' },
|
|
3741
|
+
{ files: ['**/*.jsx', '**/*.mjs'], profile: 'e4e5c8f83eb28e1c' },
|
|
3742
|
+
{ files: ['**/*.mts', '**/*.tsx'], profile: '8cf2ca7f802794be' },
|
|
3743
|
+
{ files: ['**/*.vue'], profile: '69e34eac99ac37ab' },
|
|
3744
|
+
{ files: ['**/*.d.ts'], profile: '8cf2ca7f802794be' },
|
|
3745
|
+
{ files: ['**/*.svelte'], profile: 'ea2e0f074d238b08' },
|
|
3746
|
+
{ files: ['**/*.svelte.js'], profile: 'e4e5c8f83eb28e1c' },
|
|
3747
|
+
{ files: ['**/*.svelte.ts'], profile: '8cf2ca7f802794be' },
|
|
3591
3748
|
],
|
|
3592
3749
|
}
|