@st1ggy/linter-config 8.0.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 +65 -31
- package/data/linter-config-inventory.json +294 -128
- package/data/oxlint-config-inventory.json +787 -786
- package/data/oxlint-rule-map.json +4709 -1805
- package/data/oxlint-source-inventory.json +10529 -8546
- package/docs/OXLINT_RULE_MAPPING.md +192 -87
- package/docs/RULE_MAPPING.md +2 -2
- package/package.json +110 -19
- package/scripts/README.md +8 -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 +50 -15
- package/scripts/linter-init.mjs +4 -2
- 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 +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.svelte.js +3 -0
- package/src/oxlint/configs/config.astro.js +89 -43
- package/src/oxlint/configs/config.common.js +71 -23
- package/src/oxlint/configs/config.next.js +329 -168
- package/src/oxlint/configs/config.react.js +329 -168
- package/src/oxlint/configs/config.solid.js +103 -31
- package/src/oxlint/configs/config.svelte.js +85 -62
- 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 +27 -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
|
+
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' },
|
|
@@ -247,45 +312,10 @@ export default {
|
|
|
247
312
|
'react/static-components': [2],
|
|
248
313
|
'react/unsupported-syntax': [1],
|
|
249
314
|
'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
315
|
'eslint/require-yield': [2],
|
|
287
316
|
'sonarjs/assertions-in-test-cases': [2],
|
|
288
317
|
'sonarjs/async-test-assertions': [2],
|
|
318
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
289
319
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
290
320
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
291
321
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -348,14 +378,17 @@ export default {
|
|
|
348
378
|
'sonarjs/no-clear-text-protocols': [2],
|
|
349
379
|
'sonarjs/no-code-after-done': [2],
|
|
350
380
|
'sonarjs/no-dead-store': [2],
|
|
381
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
351
382
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
352
383
|
'sonarjs/no-default-utility-imports': [2],
|
|
353
384
|
'sonarjs/no-delete-var': [2],
|
|
354
385
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
386
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
355
387
|
'sonarjs/no-duplicate-test-title': [2],
|
|
356
388
|
'sonarjs/no-duplicated-branches': [2],
|
|
357
389
|
'sonarjs/no-element-overwrite': [2],
|
|
358
390
|
'sonarjs/no-empty-collection': [2],
|
|
391
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
359
392
|
'sonarjs/no-empty-test-file': [2],
|
|
360
393
|
'sonarjs/no-empty-test-title': [2],
|
|
361
394
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -388,10 +421,10 @@ export default {
|
|
|
388
421
|
'sonarjs/no-labels': [2],
|
|
389
422
|
'sonarjs/no-literal-call': [2],
|
|
390
423
|
'sonarjs/no-mime-sniff': [2],
|
|
391
|
-
'sonarjs/no-
|
|
424
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
392
425
|
'sonarjs/no-nested-assignment': [2],
|
|
393
426
|
'sonarjs/no-nested-conditional': [2],
|
|
394
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
427
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
395
428
|
'sonarjs/no-nested-template-literals': [2],
|
|
396
429
|
'sonarjs/no-os-command-from-path': [2],
|
|
397
430
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -415,12 +448,17 @@ export default {
|
|
|
415
448
|
'sonarjs/no-useless-catch': [2],
|
|
416
449
|
'sonarjs/no-useless-increment': [2],
|
|
417
450
|
'sonarjs/no-useless-react-setstate': [2],
|
|
451
|
+
'sonarjs/no-vue-class-component': [2],
|
|
452
|
+
'sonarjs/no-vue-mixins': [2],
|
|
418
453
|
'sonarjs/no-weak-cipher': [2],
|
|
419
454
|
'sonarjs/no-weak-keys': [2],
|
|
420
455
|
'sonarjs/non-existent-operator': [2],
|
|
421
456
|
'sonarjs/object-alt-content': [2],
|
|
422
457
|
'sonarjs/parameterized-tests': [2],
|
|
458
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
423
459
|
'sonarjs/prefer-default-last': [2],
|
|
460
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
461
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
424
462
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
425
463
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
426
464
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -443,12 +481,15 @@ export default {
|
|
|
443
481
|
'sonarjs/table-header': [2],
|
|
444
482
|
'sonarjs/table-header-reference': [2],
|
|
445
483
|
'sonarjs/test-check-exception': [2],
|
|
484
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
485
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
446
486
|
'sonarjs/todo-tag': [1],
|
|
447
487
|
'sonarjs/unverified-certificate': [2],
|
|
448
488
|
'sonarjs/unverified-hostname': [2],
|
|
449
489
|
'sonarjs/updated-const-var': [2],
|
|
450
490
|
'sonarjs/updated-loop-counter': [2],
|
|
451
491
|
'sonarjs/use-type-alias': [2],
|
|
492
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
452
493
|
'sonarjs/weak-ssl': [2],
|
|
453
494
|
'sonarjs/x-powered-by': [2],
|
|
454
495
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -910,8 +951,71 @@ export default {
|
|
|
910
951
|
WeakSet: 'readonly',
|
|
911
952
|
},
|
|
912
953
|
},
|
|
913
|
-
'
|
|
954
|
+
'8cf2ca7f802794be': {
|
|
914
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],
|
|
915
1019
|
'nextjs/google-font-display': [1],
|
|
916
1020
|
'nextjs/google-font-preconnect': [1],
|
|
917
1021
|
'nextjs/inline-script-id': [2],
|
|
@@ -949,6 +1053,7 @@ export default {
|
|
|
949
1053
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
950
1054
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
951
1055
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1056
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
952
1057
|
'stylistic-js/jsx-tag-spacing': [
|
|
953
1058
|
2,
|
|
954
1059
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1135,45 +1240,10 @@ export default {
|
|
|
1135
1240
|
'react/static-components': [2],
|
|
1136
1241
|
'react/unsupported-syntax': [1],
|
|
1137
1242
|
'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
1243
|
'eslint/require-yield': [2],
|
|
1175
1244
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1176
1245
|
'sonarjs/async-test-assertions': [2],
|
|
1246
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1177
1247
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1178
1248
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
1179
1249
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1236,14 +1306,17 @@ export default {
|
|
|
1236
1306
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1237
1307
|
'sonarjs/no-code-after-done': [2],
|
|
1238
1308
|
'sonarjs/no-dead-store': [2],
|
|
1309
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1239
1310
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1240
1311
|
'sonarjs/no-default-utility-imports': [2],
|
|
1241
1312
|
'sonarjs/no-delete-var': [2],
|
|
1242
1313
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1314
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1243
1315
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1244
1316
|
'sonarjs/no-duplicated-branches': [2],
|
|
1245
1317
|
'sonarjs/no-element-overwrite': [2],
|
|
1246
1318
|
'sonarjs/no-empty-collection': [2],
|
|
1319
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1247
1320
|
'sonarjs/no-empty-test-file': [2],
|
|
1248
1321
|
'sonarjs/no-empty-test-title': [2],
|
|
1249
1322
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1276,10 +1349,10 @@ export default {
|
|
|
1276
1349
|
'sonarjs/no-labels': [2],
|
|
1277
1350
|
'sonarjs/no-literal-call': [2],
|
|
1278
1351
|
'sonarjs/no-mime-sniff': [2],
|
|
1279
|
-
'sonarjs/no-
|
|
1352
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1280
1353
|
'sonarjs/no-nested-assignment': [2],
|
|
1281
1354
|
'sonarjs/no-nested-conditional': [2],
|
|
1282
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1355
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1283
1356
|
'sonarjs/no-nested-template-literals': [2],
|
|
1284
1357
|
'sonarjs/no-os-command-from-path': [2],
|
|
1285
1358
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1303,12 +1376,17 @@ export default {
|
|
|
1303
1376
|
'sonarjs/no-useless-catch': [2],
|
|
1304
1377
|
'sonarjs/no-useless-increment': [2],
|
|
1305
1378
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1379
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1380
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1306
1381
|
'sonarjs/no-weak-cipher': [2],
|
|
1307
1382
|
'sonarjs/no-weak-keys': [2],
|
|
1308
1383
|
'sonarjs/non-existent-operator': [2],
|
|
1309
1384
|
'sonarjs/object-alt-content': [2],
|
|
1310
1385
|
'sonarjs/parameterized-tests': [2],
|
|
1386
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1311
1387
|
'sonarjs/prefer-default-last': [2],
|
|
1388
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1389
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1312
1390
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1313
1391
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1314
1392
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -1331,12 +1409,15 @@ export default {
|
|
|
1331
1409
|
'sonarjs/table-header': [2],
|
|
1332
1410
|
'sonarjs/table-header-reference': [2],
|
|
1333
1411
|
'sonarjs/test-check-exception': [2],
|
|
1412
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1413
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1334
1414
|
'sonarjs/todo-tag': [1],
|
|
1335
1415
|
'sonarjs/unverified-certificate': [2],
|
|
1336
1416
|
'sonarjs/unverified-hostname': [2],
|
|
1337
1417
|
'sonarjs/updated-const-var': [2],
|
|
1338
1418
|
'sonarjs/updated-loop-counter': [2],
|
|
1339
1419
|
'sonarjs/use-type-alias': [2],
|
|
1420
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1340
1421
|
'sonarjs/weak-ssl': [2],
|
|
1341
1422
|
'sonarjs/x-powered-by': [2],
|
|
1342
1423
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1798,8 +1879,71 @@ export default {
|
|
|
1798
1879
|
WeakSet: 'readonly',
|
|
1799
1880
|
},
|
|
1800
1881
|
},
|
|
1801
|
-
'
|
|
1882
|
+
'69e34eac99ac37ab': {
|
|
1802
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],
|
|
1803
1947
|
'nextjs/google-font-display': [1],
|
|
1804
1948
|
'nextjs/google-font-preconnect': [1],
|
|
1805
1949
|
'nextjs/inline-script-id': [2],
|
|
@@ -1837,6 +1981,7 @@ export default {
|
|
|
1837
1981
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
1838
1982
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
1839
1983
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1984
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
1840
1985
|
'stylistic-js/jsx-tag-spacing': [
|
|
1841
1986
|
2,
|
|
1842
1987
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2023,45 +2168,10 @@ export default {
|
|
|
2023
2168
|
'react/static-components': [2],
|
|
2024
2169
|
'react/unsupported-syntax': [1],
|
|
2025
2170
|
'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
2171
|
'eslint/require-yield': [2],
|
|
2063
2172
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2064
2173
|
'sonarjs/async-test-assertions': [2],
|
|
2174
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2065
2175
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2066
2176
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2067
2177
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2124,14 +2234,17 @@ export default {
|
|
|
2124
2234
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2125
2235
|
'sonarjs/no-code-after-done': [2],
|
|
2126
2236
|
'sonarjs/no-dead-store': [2],
|
|
2237
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2127
2238
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2128
2239
|
'sonarjs/no-default-utility-imports': [2],
|
|
2129
2240
|
'sonarjs/no-delete-var': [2],
|
|
2130
2241
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
2242
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2131
2243
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2132
2244
|
'sonarjs/no-duplicated-branches': [2],
|
|
2133
2245
|
'sonarjs/no-element-overwrite': [2],
|
|
2134
2246
|
'sonarjs/no-empty-collection': [2],
|
|
2247
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2135
2248
|
'sonarjs/no-empty-test-file': [2],
|
|
2136
2249
|
'sonarjs/no-empty-test-title': [2],
|
|
2137
2250
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2164,10 +2277,10 @@ export default {
|
|
|
2164
2277
|
'sonarjs/no-labels': [2],
|
|
2165
2278
|
'sonarjs/no-literal-call': [2],
|
|
2166
2279
|
'sonarjs/no-mime-sniff': [2],
|
|
2167
|
-
'sonarjs/no-
|
|
2280
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2168
2281
|
'sonarjs/no-nested-assignment': [2],
|
|
2169
2282
|
'sonarjs/no-nested-conditional': [2],
|
|
2170
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
2283
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2171
2284
|
'sonarjs/no-nested-template-literals': [2],
|
|
2172
2285
|
'sonarjs/no-os-command-from-path': [2],
|
|
2173
2286
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2191,12 +2304,17 @@ export default {
|
|
|
2191
2304
|
'sonarjs/no-useless-catch': [2],
|
|
2192
2305
|
'sonarjs/no-useless-increment': [2],
|
|
2193
2306
|
'sonarjs/no-useless-react-setstate': [2],
|
|
2307
|
+
'sonarjs/no-vue-class-component': [2],
|
|
2308
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2194
2309
|
'sonarjs/no-weak-cipher': [2],
|
|
2195
2310
|
'sonarjs/no-weak-keys': [2],
|
|
2196
2311
|
'sonarjs/non-existent-operator': [2],
|
|
2197
2312
|
'sonarjs/object-alt-content': [2],
|
|
2198
2313
|
'sonarjs/parameterized-tests': [2],
|
|
2314
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2199
2315
|
'sonarjs/prefer-default-last': [2],
|
|
2316
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
2317
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2200
2318
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2201
2319
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2202
2320
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -2219,12 +2337,15 @@ export default {
|
|
|
2219
2337
|
'sonarjs/table-header': [2],
|
|
2220
2338
|
'sonarjs/table-header-reference': [2],
|
|
2221
2339
|
'sonarjs/test-check-exception': [2],
|
|
2340
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
2341
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
2222
2342
|
'sonarjs/todo-tag': [1],
|
|
2223
2343
|
'sonarjs/unverified-certificate': [2],
|
|
2224
2344
|
'sonarjs/unverified-hostname': [2],
|
|
2225
2345
|
'sonarjs/updated-const-var': [2],
|
|
2226
2346
|
'sonarjs/updated-loop-counter': [2],
|
|
2227
2347
|
'sonarjs/use-type-alias': [2],
|
|
2348
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
2228
2349
|
'sonarjs/weak-ssl': [2],
|
|
2229
2350
|
'sonarjs/x-powered-by': [2],
|
|
2230
2351
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -2686,8 +2807,71 @@ export default {
|
|
|
2686
2807
|
WeakSet: 'readonly',
|
|
2687
2808
|
},
|
|
2688
2809
|
},
|
|
2689
|
-
|
|
2810
|
+
ea2e0f074d238b08: {
|
|
2690
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],
|
|
2691
2875
|
'nextjs/google-font-display': [1],
|
|
2692
2876
|
'nextjs/google-font-preconnect': [1],
|
|
2693
2877
|
'nextjs/inline-script-id': [2],
|
|
@@ -2725,6 +2909,7 @@ export default {
|
|
|
2725
2909
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
2726
2910
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
2727
2911
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
2912
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
2728
2913
|
'stylistic-js/jsx-tag-spacing': [
|
|
2729
2914
|
2,
|
|
2730
2915
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2908,45 +3093,10 @@ export default {
|
|
|
2908
3093
|
'react/static-components': [2],
|
|
2909
3094
|
'react/unsupported-syntax': [1],
|
|
2910
3095
|
'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
3096
|
'eslint/require-yield': [2],
|
|
2948
3097
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2949
3098
|
'sonarjs/async-test-assertions': [2],
|
|
3099
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2950
3100
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2951
3101
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2952
3102
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -3009,14 +3159,17 @@ export default {
|
|
|
3009
3159
|
'sonarjs/no-clear-text-protocols': [2],
|
|
3010
3160
|
'sonarjs/no-code-after-done': [2],
|
|
3011
3161
|
'sonarjs/no-dead-store': [2],
|
|
3162
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
3012
3163
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
3013
3164
|
'sonarjs/no-default-utility-imports': [2],
|
|
3014
3165
|
'sonarjs/no-delete-var': [2],
|
|
3015
3166
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
3167
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
3016
3168
|
'sonarjs/no-duplicate-test-title': [2],
|
|
3017
3169
|
'sonarjs/no-duplicated-branches': [2],
|
|
3018
3170
|
'sonarjs/no-element-overwrite': [2],
|
|
3019
3171
|
'sonarjs/no-empty-collection': [2],
|
|
3172
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
3020
3173
|
'sonarjs/no-empty-test-file': [2],
|
|
3021
3174
|
'sonarjs/no-empty-test-title': [2],
|
|
3022
3175
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -3049,10 +3202,10 @@ export default {
|
|
|
3049
3202
|
'sonarjs/no-labels': [2],
|
|
3050
3203
|
'sonarjs/no-literal-call': [2],
|
|
3051
3204
|
'sonarjs/no-mime-sniff': [2],
|
|
3052
|
-
'sonarjs/no-
|
|
3205
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
3053
3206
|
'sonarjs/no-nested-assignment': [2],
|
|
3054
3207
|
'sonarjs/no-nested-conditional': [2],
|
|
3055
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
3208
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
3056
3209
|
'sonarjs/no-nested-template-literals': [2],
|
|
3057
3210
|
'sonarjs/no-os-command-from-path': [2],
|
|
3058
3211
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -3076,12 +3229,17 @@ export default {
|
|
|
3076
3229
|
'sonarjs/no-useless-catch': [2],
|
|
3077
3230
|
'sonarjs/no-useless-increment': [2],
|
|
3078
3231
|
'sonarjs/no-useless-react-setstate': [2],
|
|
3232
|
+
'sonarjs/no-vue-class-component': [2],
|
|
3233
|
+
'sonarjs/no-vue-mixins': [2],
|
|
3079
3234
|
'sonarjs/no-weak-cipher': [2],
|
|
3080
3235
|
'sonarjs/no-weak-keys': [2],
|
|
3081
3236
|
'sonarjs/non-existent-operator': [2],
|
|
3082
3237
|
'sonarjs/object-alt-content': [2],
|
|
3083
3238
|
'sonarjs/parameterized-tests': [2],
|
|
3239
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
3084
3240
|
'sonarjs/prefer-default-last': [2],
|
|
3241
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
3242
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
3085
3243
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
3086
3244
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
3087
3245
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -3104,12 +3262,15 @@ export default {
|
|
|
3104
3262
|
'sonarjs/table-header': [2],
|
|
3105
3263
|
'sonarjs/table-header-reference': [2],
|
|
3106
3264
|
'sonarjs/test-check-exception': [2],
|
|
3265
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
3266
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
3107
3267
|
'sonarjs/todo-tag': [1],
|
|
3108
3268
|
'sonarjs/unverified-certificate': [2],
|
|
3109
3269
|
'sonarjs/unverified-hostname': [2],
|
|
3110
3270
|
'sonarjs/updated-const-var': [2],
|
|
3111
3271
|
'sonarjs/updated-loop-counter': [2],
|
|
3112
3272
|
'sonarjs/use-type-alias': [2],
|
|
3273
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
3113
3274
|
'sonarjs/weak-ssl': [2],
|
|
3114
3275
|
'sonarjs/x-powered-by': [2],
|
|
3115
3276
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -3573,16 +3734,16 @@ export default {
|
|
|
3573
3734
|
},
|
|
3574
3735
|
},
|
|
3575
3736
|
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: '
|
|
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' },
|
|
3587
3748
|
],
|
|
3588
3749
|
}
|