@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
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
'eslint-js',
|
|
8
8
|
'import-x-js',
|
|
9
9
|
'react-hooks-js',
|
|
10
|
-
'react-
|
|
10
|
+
'react-modern',
|
|
11
11
|
'sonarjs',
|
|
12
12
|
'stylistic-js',
|
|
13
13
|
'typescript-js',
|
|
@@ -19,10 +19,74 @@ export default {
|
|
|
19
19
|
'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
|
|
20
20
|
'import-x/resolver': { typescript: true, node: true },
|
|
21
21
|
react: { version: '999.999.999' },
|
|
22
|
+
'react-x': { version: 'detect', importSource: 'react', polymorphicPropName: 'as' },
|
|
22
23
|
},
|
|
23
24
|
profiles: {
|
|
24
|
-
|
|
25
|
+
'7f18026b708bafe9': {
|
|
25
26
|
rules: {
|
|
27
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
28
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
29
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
30
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
31
|
+
'react-modern/dom-no-hydrate': [2],
|
|
32
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
33
|
+
'react-modern/dom-no-render': [2],
|
|
34
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
35
|
+
'react-modern/dom-no-script-url': [1],
|
|
36
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
37
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
38
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
39
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
40
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
41
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
42
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
43
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
44
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
45
|
+
'react-modern/jsx-no-namespace': [2],
|
|
46
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
47
|
+
'react-modern/naming-convention-context-name': [1],
|
|
48
|
+
'react-modern/naming-convention-id-name': [1],
|
|
49
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
50
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
51
|
+
'react/no-array-index-key': [1],
|
|
52
|
+
'react-modern/no-children-count': [1],
|
|
53
|
+
'react-modern/no-children-for-each': [1],
|
|
54
|
+
'react-modern/no-children-map': [1],
|
|
55
|
+
'react-modern/no-children-only': [1],
|
|
56
|
+
'react-modern/no-children-to-array': [1],
|
|
57
|
+
'react/no-clone-element': [1],
|
|
58
|
+
'react-modern/no-component-will-mount': [2],
|
|
59
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
60
|
+
'react-modern/no-component-will-update': [2],
|
|
61
|
+
'react-modern/no-context-provider': [1],
|
|
62
|
+
'react-modern/no-create-ref': [2],
|
|
63
|
+
'react/no-direct-mutation-state': [2],
|
|
64
|
+
'react-modern/no-forward-ref': [1],
|
|
65
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
66
|
+
'react-modern/no-missing-key': [2],
|
|
67
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
68
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
69
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
70
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
71
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
72
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
73
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
74
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
75
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
76
|
+
'react-modern/no-unstable-context-value': [2],
|
|
77
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
78
|
+
'react-modern/no-use-context': [1],
|
|
79
|
+
'react-modern/rsc-function-definition': [2],
|
|
80
|
+
'react-modern/use-state': [
|
|
81
|
+
2,
|
|
82
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
83
|
+
],
|
|
84
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
85
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
86
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
87
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
88
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
89
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
26
90
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
27
91
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
28
92
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -38,6 +102,7 @@ export default {
|
|
|
38
102
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
39
103
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
40
104
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
105
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
41
106
|
'stylistic-js/jsx-tag-spacing': [
|
|
42
107
|
2,
|
|
43
108
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -224,45 +289,10 @@ export default {
|
|
|
224
289
|
'react/static-components': [2],
|
|
225
290
|
'react/unsupported-syntax': [1],
|
|
226
291
|
'react/use-memo': [2],
|
|
227
|
-
'react-js/boolean-prop-naming': [2],
|
|
228
|
-
'react/button-has-type': [2],
|
|
229
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
230
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
231
|
-
'react-js/destructuring-assignment': [2],
|
|
232
|
-
'react/display-name': [2],
|
|
233
|
-
'react/function-component-definition': [
|
|
234
|
-
2,
|
|
235
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
236
|
-
],
|
|
237
|
-
'react/hook-use-state': [2],
|
|
238
|
-
'react/jsx-boolean-value': [2],
|
|
239
|
-
'react/jsx-fragments': [2],
|
|
240
|
-
'react/jsx-handler-names': [2],
|
|
241
|
-
'react/jsx-key': [2],
|
|
242
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
243
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
244
|
-
'react/jsx-no-duplicate-props': [2],
|
|
245
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
246
|
-
'react/jsx-no-target-blank': [2],
|
|
247
|
-
'react/jsx-no-undef': [2],
|
|
248
|
-
'react/jsx-no-useless-fragment': [2],
|
|
249
|
-
'react/no-children-prop': [2],
|
|
250
|
-
'react/no-danger-with-children': [2],
|
|
251
|
-
'react-js/no-deprecated': [2],
|
|
252
|
-
'react/no-direct-mutation-state': [2],
|
|
253
|
-
'react/no-find-dom-node': [2],
|
|
254
|
-
'react/no-is-mounted': [2],
|
|
255
|
-
'react/no-multi-comp': [2],
|
|
256
|
-
'react/no-render-return-value': [2],
|
|
257
|
-
'react/no-string-refs': [2],
|
|
258
|
-
'react/no-unescaped-entities': [2],
|
|
259
|
-
'react/no-unknown-property': [2],
|
|
260
|
-
'react-js/prop-types': [2],
|
|
261
|
-
'react/require-render-return': [2],
|
|
262
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
263
292
|
'eslint/require-yield': [2],
|
|
264
293
|
'sonarjs/assertions-in-test-cases': [2],
|
|
265
294
|
'sonarjs/async-test-assertions': [2],
|
|
295
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
266
296
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
267
297
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
268
298
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -325,14 +355,17 @@ export default {
|
|
|
325
355
|
'sonarjs/no-clear-text-protocols': [2],
|
|
326
356
|
'sonarjs/no-code-after-done': [2],
|
|
327
357
|
'sonarjs/no-dead-store': [2],
|
|
358
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
328
359
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
329
360
|
'sonarjs/no-default-utility-imports': [2],
|
|
330
361
|
'sonarjs/no-delete-var': [2],
|
|
331
362
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
363
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
332
364
|
'sonarjs/no-duplicate-test-title': [2],
|
|
333
365
|
'sonarjs/no-duplicated-branches': [2],
|
|
334
366
|
'sonarjs/no-element-overwrite': [2],
|
|
335
367
|
'sonarjs/no-empty-collection': [2],
|
|
368
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
336
369
|
'sonarjs/no-empty-test-file': [2],
|
|
337
370
|
'sonarjs/no-empty-test-title': [2],
|
|
338
371
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -365,10 +398,10 @@ export default {
|
|
|
365
398
|
'sonarjs/no-labels': [2],
|
|
366
399
|
'sonarjs/no-literal-call': [2],
|
|
367
400
|
'sonarjs/no-mime-sniff': [2],
|
|
368
|
-
'sonarjs/no-
|
|
401
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
369
402
|
'sonarjs/no-nested-assignment': [2],
|
|
370
403
|
'sonarjs/no-nested-conditional': [2],
|
|
371
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
404
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
372
405
|
'sonarjs/no-nested-template-literals': [2],
|
|
373
406
|
'sonarjs/no-os-command-from-path': [2],
|
|
374
407
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -392,12 +425,17 @@ export default {
|
|
|
392
425
|
'sonarjs/no-useless-catch': [2],
|
|
393
426
|
'sonarjs/no-useless-increment': [2],
|
|
394
427
|
'sonarjs/no-useless-react-setstate': [2],
|
|
428
|
+
'sonarjs/no-vue-class-component': [2],
|
|
429
|
+
'sonarjs/no-vue-mixins': [2],
|
|
395
430
|
'sonarjs/no-weak-cipher': [2],
|
|
396
431
|
'sonarjs/no-weak-keys': [2],
|
|
397
432
|
'sonarjs/non-existent-operator': [2],
|
|
398
433
|
'sonarjs/object-alt-content': [2],
|
|
399
434
|
'sonarjs/parameterized-tests': [2],
|
|
435
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
400
436
|
'sonarjs/prefer-default-last': [2],
|
|
437
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
438
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
401
439
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
402
440
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
403
441
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -420,12 +458,15 @@ export default {
|
|
|
420
458
|
'sonarjs/table-header': [2],
|
|
421
459
|
'sonarjs/table-header-reference': [2],
|
|
422
460
|
'sonarjs/test-check-exception': [2],
|
|
461
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
462
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
423
463
|
'sonarjs/todo-tag': [1],
|
|
424
464
|
'sonarjs/unverified-certificate': [2],
|
|
425
465
|
'sonarjs/unverified-hostname': [2],
|
|
426
466
|
'sonarjs/updated-const-var': [2],
|
|
427
467
|
'sonarjs/updated-loop-counter': [2],
|
|
428
468
|
'sonarjs/use-type-alias': [2],
|
|
469
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
429
470
|
'sonarjs/weak-ssl': [2],
|
|
430
471
|
'sonarjs/x-powered-by': [2],
|
|
431
472
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -887,8 +928,71 @@ export default {
|
|
|
887
928
|
WeakSet: 'readonly',
|
|
888
929
|
},
|
|
889
930
|
},
|
|
890
|
-
|
|
931
|
+
e3083f4610795b18: {
|
|
891
932
|
rules: {
|
|
933
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
934
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
935
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
936
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
937
|
+
'react-modern/dom-no-hydrate': [2],
|
|
938
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
939
|
+
'react-modern/dom-no-render': [2],
|
|
940
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
941
|
+
'react-modern/dom-no-script-url': [1],
|
|
942
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
943
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
944
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
945
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
946
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
947
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
948
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
949
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
950
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
951
|
+
'react-modern/jsx-no-namespace': [2],
|
|
952
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
953
|
+
'react-modern/naming-convention-context-name': [1],
|
|
954
|
+
'react-modern/naming-convention-id-name': [1],
|
|
955
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
956
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
957
|
+
'react/no-array-index-key': [1],
|
|
958
|
+
'react-modern/no-children-count': [1],
|
|
959
|
+
'react-modern/no-children-for-each': [1],
|
|
960
|
+
'react-modern/no-children-map': [1],
|
|
961
|
+
'react-modern/no-children-only': [1],
|
|
962
|
+
'react-modern/no-children-to-array': [1],
|
|
963
|
+
'react/no-clone-element': [1],
|
|
964
|
+
'react-modern/no-component-will-mount': [2],
|
|
965
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
966
|
+
'react-modern/no-component-will-update': [2],
|
|
967
|
+
'react-modern/no-context-provider': [1],
|
|
968
|
+
'react-modern/no-create-ref': [2],
|
|
969
|
+
'react/no-direct-mutation-state': [2],
|
|
970
|
+
'react-modern/no-forward-ref': [1],
|
|
971
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
972
|
+
'react-modern/no-missing-key': [2],
|
|
973
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
974
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
975
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
976
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
977
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
978
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
979
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
980
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
981
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
982
|
+
'react-modern/no-unstable-context-value': [2],
|
|
983
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
984
|
+
'react-modern/no-use-context': [1],
|
|
985
|
+
'react-modern/rsc-function-definition': [2],
|
|
986
|
+
'react-modern/use-state': [
|
|
987
|
+
2,
|
|
988
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
989
|
+
],
|
|
990
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
991
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
992
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
993
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
994
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
995
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
892
996
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
893
997
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
894
998
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -904,6 +1008,7 @@ export default {
|
|
|
904
1008
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
905
1009
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
906
1010
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1011
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
907
1012
|
'stylistic-js/jsx-tag-spacing': [
|
|
908
1013
|
2,
|
|
909
1014
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1090,45 +1195,10 @@ export default {
|
|
|
1090
1195
|
'react/static-components': [2],
|
|
1091
1196
|
'react/unsupported-syntax': [1],
|
|
1092
1197
|
'react/use-memo': [2],
|
|
1093
|
-
'react-js/boolean-prop-naming': [2],
|
|
1094
|
-
'react/button-has-type': [2],
|
|
1095
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1096
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1097
|
-
'react-js/destructuring-assignment': [2],
|
|
1098
|
-
'react/display-name': [2],
|
|
1099
|
-
'react/function-component-definition': [
|
|
1100
|
-
2,
|
|
1101
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1102
|
-
],
|
|
1103
|
-
'react/hook-use-state': [2],
|
|
1104
|
-
'react/jsx-boolean-value': [2],
|
|
1105
|
-
'react/jsx-fragments': [2],
|
|
1106
|
-
'react/jsx-handler-names': [2],
|
|
1107
|
-
'react/jsx-key': [2],
|
|
1108
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1109
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1110
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1111
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1112
|
-
'react/jsx-no-target-blank': [2],
|
|
1113
|
-
'react/jsx-no-undef': [2],
|
|
1114
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1115
|
-
'react/no-children-prop': [2],
|
|
1116
|
-
'react/no-danger-with-children': [2],
|
|
1117
|
-
'react-js/no-deprecated': [2],
|
|
1118
|
-
'react/no-direct-mutation-state': [2],
|
|
1119
|
-
'react/no-find-dom-node': [2],
|
|
1120
|
-
'react/no-is-mounted': [2],
|
|
1121
|
-
'react/no-multi-comp': [2],
|
|
1122
|
-
'react/no-render-return-value': [2],
|
|
1123
|
-
'react/no-string-refs': [2],
|
|
1124
|
-
'react/no-unescaped-entities': [2],
|
|
1125
|
-
'react/no-unknown-property': [2],
|
|
1126
|
-
'react-js/prop-types': [2],
|
|
1127
|
-
'react/require-render-return': [2],
|
|
1128
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1129
1198
|
'eslint/require-yield': [2],
|
|
1130
1199
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1131
1200
|
'sonarjs/async-test-assertions': [2],
|
|
1201
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1132
1202
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1133
1203
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
1134
1204
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1191,14 +1261,17 @@ export default {
|
|
|
1191
1261
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1192
1262
|
'sonarjs/no-code-after-done': [2],
|
|
1193
1263
|
'sonarjs/no-dead-store': [2],
|
|
1264
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1194
1265
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1195
1266
|
'sonarjs/no-default-utility-imports': [2],
|
|
1196
1267
|
'sonarjs/no-delete-var': [2],
|
|
1197
1268
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1269
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1198
1270
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1199
1271
|
'sonarjs/no-duplicated-branches': [2],
|
|
1200
1272
|
'sonarjs/no-element-overwrite': [2],
|
|
1201
1273
|
'sonarjs/no-empty-collection': [2],
|
|
1274
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1202
1275
|
'sonarjs/no-empty-test-file': [2],
|
|
1203
1276
|
'sonarjs/no-empty-test-title': [2],
|
|
1204
1277
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1231,10 +1304,10 @@ export default {
|
|
|
1231
1304
|
'sonarjs/no-labels': [2],
|
|
1232
1305
|
'sonarjs/no-literal-call': [2],
|
|
1233
1306
|
'sonarjs/no-mime-sniff': [2],
|
|
1234
|
-
'sonarjs/no-
|
|
1307
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1235
1308
|
'sonarjs/no-nested-assignment': [2],
|
|
1236
1309
|
'sonarjs/no-nested-conditional': [2],
|
|
1237
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1310
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1238
1311
|
'sonarjs/no-nested-template-literals': [2],
|
|
1239
1312
|
'sonarjs/no-os-command-from-path': [2],
|
|
1240
1313
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1258,12 +1331,17 @@ export default {
|
|
|
1258
1331
|
'sonarjs/no-useless-catch': [2],
|
|
1259
1332
|
'sonarjs/no-useless-increment': [2],
|
|
1260
1333
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1334
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1335
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1261
1336
|
'sonarjs/no-weak-cipher': [2],
|
|
1262
1337
|
'sonarjs/no-weak-keys': [2],
|
|
1263
1338
|
'sonarjs/non-existent-operator': [2],
|
|
1264
1339
|
'sonarjs/object-alt-content': [2],
|
|
1265
1340
|
'sonarjs/parameterized-tests': [2],
|
|
1341
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1266
1342
|
'sonarjs/prefer-default-last': [2],
|
|
1343
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1344
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1267
1345
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1268
1346
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1269
1347
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -1286,12 +1364,15 @@ export default {
|
|
|
1286
1364
|
'sonarjs/table-header': [2],
|
|
1287
1365
|
'sonarjs/table-header-reference': [2],
|
|
1288
1366
|
'sonarjs/test-check-exception': [2],
|
|
1367
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1368
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1289
1369
|
'sonarjs/todo-tag': [1],
|
|
1290
1370
|
'sonarjs/unverified-certificate': [2],
|
|
1291
1371
|
'sonarjs/unverified-hostname': [2],
|
|
1292
1372
|
'sonarjs/updated-const-var': [2],
|
|
1293
1373
|
'sonarjs/updated-loop-counter': [2],
|
|
1294
1374
|
'sonarjs/use-type-alias': [2],
|
|
1375
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1295
1376
|
'sonarjs/weak-ssl': [2],
|
|
1296
1377
|
'sonarjs/x-powered-by': [2],
|
|
1297
1378
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1753,8 +1834,71 @@ export default {
|
|
|
1753
1834
|
WeakSet: 'readonly',
|
|
1754
1835
|
},
|
|
1755
1836
|
},
|
|
1756
|
-
'
|
|
1837
|
+
'5f5062647375942d': {
|
|
1757
1838
|
rules: {
|
|
1839
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
1840
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
1841
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
1842
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
1843
|
+
'react-modern/dom-no-hydrate': [2],
|
|
1844
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
1845
|
+
'react-modern/dom-no-render': [2],
|
|
1846
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
1847
|
+
'react-modern/dom-no-script-url': [1],
|
|
1848
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
1849
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
1850
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
1851
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
1852
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
1853
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
1854
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
1855
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
1856
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
1857
|
+
'react-modern/jsx-no-namespace': [2],
|
|
1858
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
1859
|
+
'react-modern/naming-convention-context-name': [1],
|
|
1860
|
+
'react-modern/naming-convention-id-name': [1],
|
|
1861
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
1862
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
1863
|
+
'react/no-array-index-key': [1],
|
|
1864
|
+
'react-modern/no-children-count': [1],
|
|
1865
|
+
'react-modern/no-children-for-each': [1],
|
|
1866
|
+
'react-modern/no-children-map': [1],
|
|
1867
|
+
'react-modern/no-children-only': [1],
|
|
1868
|
+
'react-modern/no-children-to-array': [1],
|
|
1869
|
+
'react/no-clone-element': [1],
|
|
1870
|
+
'react-modern/no-component-will-mount': [2],
|
|
1871
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
1872
|
+
'react-modern/no-component-will-update': [2],
|
|
1873
|
+
'react-modern/no-context-provider': [1],
|
|
1874
|
+
'react-modern/no-create-ref': [2],
|
|
1875
|
+
'react/no-direct-mutation-state': [2],
|
|
1876
|
+
'react-modern/no-forward-ref': [1],
|
|
1877
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
1878
|
+
'react-modern/no-missing-key': [2],
|
|
1879
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
1880
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
1881
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
1882
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
1883
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
1884
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
1885
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
1886
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
1887
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
1888
|
+
'react-modern/no-unstable-context-value': [2],
|
|
1889
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
1890
|
+
'react-modern/no-use-context': [1],
|
|
1891
|
+
'react-modern/rsc-function-definition': [2],
|
|
1892
|
+
'react-modern/use-state': [
|
|
1893
|
+
2,
|
|
1894
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
1895
|
+
],
|
|
1896
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
1897
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
1898
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
1899
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
1900
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
1901
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
1758
1902
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
1759
1903
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
1760
1904
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -1770,6 +1914,7 @@ export default {
|
|
|
1770
1914
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
1771
1915
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
1772
1916
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1917
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
1773
1918
|
'stylistic-js/jsx-tag-spacing': [
|
|
1774
1919
|
2,
|
|
1775
1920
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1956,45 +2101,10 @@ export default {
|
|
|
1956
2101
|
'react/static-components': [2],
|
|
1957
2102
|
'react/unsupported-syntax': [1],
|
|
1958
2103
|
'react/use-memo': [2],
|
|
1959
|
-
'react-js/boolean-prop-naming': [2],
|
|
1960
|
-
'react/button-has-type': [2],
|
|
1961
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1962
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1963
|
-
'react-js/destructuring-assignment': [2],
|
|
1964
|
-
'react/display-name': [2],
|
|
1965
|
-
'react/function-component-definition': [
|
|
1966
|
-
2,
|
|
1967
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1968
|
-
],
|
|
1969
|
-
'react/hook-use-state': [2],
|
|
1970
|
-
'react/jsx-boolean-value': [2],
|
|
1971
|
-
'react/jsx-fragments': [2],
|
|
1972
|
-
'react/jsx-handler-names': [2],
|
|
1973
|
-
'react/jsx-key': [2],
|
|
1974
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1975
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1976
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1977
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1978
|
-
'react/jsx-no-target-blank': [2],
|
|
1979
|
-
'react/jsx-no-undef': [2],
|
|
1980
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1981
|
-
'react/no-children-prop': [2],
|
|
1982
|
-
'react/no-danger-with-children': [2],
|
|
1983
|
-
'react-js/no-deprecated': [2],
|
|
1984
|
-
'react/no-direct-mutation-state': [2],
|
|
1985
|
-
'react/no-find-dom-node': [2],
|
|
1986
|
-
'react/no-is-mounted': [2],
|
|
1987
|
-
'react/no-multi-comp': [2],
|
|
1988
|
-
'react/no-render-return-value': [2],
|
|
1989
|
-
'react/no-string-refs': [2],
|
|
1990
|
-
'react/no-unescaped-entities': [2],
|
|
1991
|
-
'react/no-unknown-property': [2],
|
|
1992
|
-
'react-js/prop-types': [2],
|
|
1993
|
-
'react/require-render-return': [2],
|
|
1994
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1995
2104
|
'eslint/require-yield': [2],
|
|
1996
2105
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1997
2106
|
'sonarjs/async-test-assertions': [2],
|
|
2107
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1998
2108
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1999
2109
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2000
2110
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2057,14 +2167,17 @@ export default {
|
|
|
2057
2167
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2058
2168
|
'sonarjs/no-code-after-done': [2],
|
|
2059
2169
|
'sonarjs/no-dead-store': [2],
|
|
2170
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2060
2171
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2061
2172
|
'sonarjs/no-default-utility-imports': [2],
|
|
2062
2173
|
'sonarjs/no-delete-var': [2],
|
|
2063
2174
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
2175
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2064
2176
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2065
2177
|
'sonarjs/no-duplicated-branches': [2],
|
|
2066
2178
|
'sonarjs/no-element-overwrite': [2],
|
|
2067
2179
|
'sonarjs/no-empty-collection': [2],
|
|
2180
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2068
2181
|
'sonarjs/no-empty-test-file': [2],
|
|
2069
2182
|
'sonarjs/no-empty-test-title': [2],
|
|
2070
2183
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2097,10 +2210,10 @@ export default {
|
|
|
2097
2210
|
'sonarjs/no-labels': [2],
|
|
2098
2211
|
'sonarjs/no-literal-call': [2],
|
|
2099
2212
|
'sonarjs/no-mime-sniff': [2],
|
|
2100
|
-
'sonarjs/no-
|
|
2213
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2101
2214
|
'sonarjs/no-nested-assignment': [2],
|
|
2102
2215
|
'sonarjs/no-nested-conditional': [2],
|
|
2103
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
2216
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2104
2217
|
'sonarjs/no-nested-template-literals': [2],
|
|
2105
2218
|
'sonarjs/no-os-command-from-path': [2],
|
|
2106
2219
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2124,12 +2237,17 @@ export default {
|
|
|
2124
2237
|
'sonarjs/no-useless-catch': [2],
|
|
2125
2238
|
'sonarjs/no-useless-increment': [2],
|
|
2126
2239
|
'sonarjs/no-useless-react-setstate': [2],
|
|
2240
|
+
'sonarjs/no-vue-class-component': [2],
|
|
2241
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2127
2242
|
'sonarjs/no-weak-cipher': [2],
|
|
2128
2243
|
'sonarjs/no-weak-keys': [2],
|
|
2129
2244
|
'sonarjs/non-existent-operator': [2],
|
|
2130
2245
|
'sonarjs/object-alt-content': [2],
|
|
2131
2246
|
'sonarjs/parameterized-tests': [2],
|
|
2247
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2132
2248
|
'sonarjs/prefer-default-last': [2],
|
|
2249
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
2250
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2133
2251
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2134
2252
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2135
2253
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -2152,12 +2270,15 @@ export default {
|
|
|
2152
2270
|
'sonarjs/table-header': [2],
|
|
2153
2271
|
'sonarjs/table-header-reference': [2],
|
|
2154
2272
|
'sonarjs/test-check-exception': [2],
|
|
2273
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
2274
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
2155
2275
|
'sonarjs/todo-tag': [1],
|
|
2156
2276
|
'sonarjs/unverified-certificate': [2],
|
|
2157
2277
|
'sonarjs/unverified-hostname': [2],
|
|
2158
2278
|
'sonarjs/updated-const-var': [2],
|
|
2159
2279
|
'sonarjs/updated-loop-counter': [2],
|
|
2160
2280
|
'sonarjs/use-type-alias': [2],
|
|
2281
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
2161
2282
|
'sonarjs/weak-ssl': [2],
|
|
2162
2283
|
'sonarjs/x-powered-by': [2],
|
|
2163
2284
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -2619,8 +2740,71 @@ export default {
|
|
|
2619
2740
|
WeakSet: 'readonly',
|
|
2620
2741
|
},
|
|
2621
2742
|
},
|
|
2622
|
-
|
|
2743
|
+
'9aab0dd5b128a0c1': {
|
|
2623
2744
|
rules: {
|
|
2745
|
+
'react-modern/dom-no-dangerously-set-innerhtml': [1],
|
|
2746
|
+
'react-modern/dom-no-dangerously-set-innerhtml-with-children': [2],
|
|
2747
|
+
'react-modern/dom-no-find-dom-node': [2],
|
|
2748
|
+
'react-modern/dom-no-flush-sync': [2],
|
|
2749
|
+
'react-modern/dom-no-hydrate': [2],
|
|
2750
|
+
'react-modern/dom-no-missing-button-type': [2],
|
|
2751
|
+
'react-modern/dom-no-render': [2],
|
|
2752
|
+
'react-modern/dom-no-render-return-value': [2],
|
|
2753
|
+
'react-modern/dom-no-script-url': [1],
|
|
2754
|
+
'react-modern/dom-no-unsafe-iframe-sandbox': [1],
|
|
2755
|
+
'react-modern/dom-no-use-form-state': [2],
|
|
2756
|
+
'react-modern/dom-no-void-elements-with-children': [2],
|
|
2757
|
+
'react-modern/jsx-no-children-prop': [1],
|
|
2758
|
+
'react-modern/jsx-no-children-prop-with-children': [2],
|
|
2759
|
+
'react/jsx-no-comment-textnodes': [1],
|
|
2760
|
+
'react-modern/jsx-no-key-after-spread': [2],
|
|
2761
|
+
'react-modern/jsx-no-leaked-dollar': [1],
|
|
2762
|
+
'react-modern/jsx-no-leaked-semicolon': [1],
|
|
2763
|
+
'react-modern/jsx-no-namespace': [2],
|
|
2764
|
+
'react-modern/jsx-no-useless-fragment': [2, { allowEmptyFragment: false, allowExpressions: true }],
|
|
2765
|
+
'react-modern/naming-convention-context-name': [1],
|
|
2766
|
+
'react-modern/naming-convention-id-name': [1],
|
|
2767
|
+
'react-modern/naming-convention-ref-name': [1],
|
|
2768
|
+
'react-modern/no-access-state-in-setstate': [2],
|
|
2769
|
+
'react/no-array-index-key': [1],
|
|
2770
|
+
'react-modern/no-children-count': [1],
|
|
2771
|
+
'react-modern/no-children-for-each': [1],
|
|
2772
|
+
'react-modern/no-children-map': [1],
|
|
2773
|
+
'react-modern/no-children-only': [1],
|
|
2774
|
+
'react-modern/no-children-to-array': [1],
|
|
2775
|
+
'react/no-clone-element': [1],
|
|
2776
|
+
'react-modern/no-component-will-mount': [2],
|
|
2777
|
+
'react-modern/no-component-will-receive-props': [2],
|
|
2778
|
+
'react-modern/no-component-will-update': [2],
|
|
2779
|
+
'react-modern/no-context-provider': [1],
|
|
2780
|
+
'react-modern/no-create-ref': [2],
|
|
2781
|
+
'react/no-direct-mutation-state': [2],
|
|
2782
|
+
'react-modern/no-forward-ref': [1],
|
|
2783
|
+
'react-modern/no-missing-component-display-name': [2],
|
|
2784
|
+
'react-modern/no-missing-key': [2],
|
|
2785
|
+
'react-modern/no-nested-component-definitions': [2],
|
|
2786
|
+
'react-modern/no-nested-lazy-component-declarations': [2],
|
|
2787
|
+
'react-modern/no-set-state-in-component-did-mount': [1],
|
|
2788
|
+
'react-modern/no-set-state-in-component-did-update': [1],
|
|
2789
|
+
'react-modern/no-set-state-in-component-will-update': [1],
|
|
2790
|
+
'react-modern/no-unnecessary-use-prefix': [1],
|
|
2791
|
+
'react-modern/no-unsafe-component-will-mount': [1],
|
|
2792
|
+
'react-modern/no-unsafe-component-will-receive-props': [1],
|
|
2793
|
+
'react-modern/no-unsafe-component-will-update': [1],
|
|
2794
|
+
'react-modern/no-unstable-context-value': [2],
|
|
2795
|
+
'react-modern/no-unused-class-component-members': [1],
|
|
2796
|
+
'react-modern/no-use-context': [1],
|
|
2797
|
+
'react-modern/rsc-function-definition': [2],
|
|
2798
|
+
'react-modern/use-state': [
|
|
2799
|
+
2,
|
|
2800
|
+
{ enforceAssignment: true, enforceLazyInitialization: true, enforceSetterName: true },
|
|
2801
|
+
],
|
|
2802
|
+
'react-modern/web-api-no-leaked-event-listener': [1],
|
|
2803
|
+
'react-modern/web-api-no-leaked-fetch': [1],
|
|
2804
|
+
'react-modern/web-api-no-leaked-intersection-observer': [1],
|
|
2805
|
+
'react-modern/web-api-no-leaked-interval': [1],
|
|
2806
|
+
'react-modern/web-api-no-leaked-resize-observer': [1],
|
|
2807
|
+
'react-modern/web-api-no-leaked-timeout': [1],
|
|
2624
2808
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
2625
2809
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
2626
2810
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -2636,6 +2820,7 @@ export default {
|
|
|
2636
2820
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
2637
2821
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
2638
2822
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
2823
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
2639
2824
|
'stylistic-js/jsx-tag-spacing': [
|
|
2640
2825
|
2,
|
|
2641
2826
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2819,45 +3004,10 @@ export default {
|
|
|
2819
3004
|
'react/static-components': [2],
|
|
2820
3005
|
'react/unsupported-syntax': [1],
|
|
2821
3006
|
'react/use-memo': [2],
|
|
2822
|
-
'react-js/boolean-prop-naming': [2],
|
|
2823
|
-
'react/button-has-type': [2],
|
|
2824
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
2825
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
2826
|
-
'react-js/destructuring-assignment': [2],
|
|
2827
|
-
'react/display-name': [2],
|
|
2828
|
-
'react/function-component-definition': [
|
|
2829
|
-
2,
|
|
2830
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
2831
|
-
],
|
|
2832
|
-
'react/hook-use-state': [2],
|
|
2833
|
-
'react/jsx-boolean-value': [2],
|
|
2834
|
-
'react/jsx-fragments': [2],
|
|
2835
|
-
'react/jsx-handler-names': [2],
|
|
2836
|
-
'react/jsx-key': [2],
|
|
2837
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
2838
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
2839
|
-
'react/jsx-no-duplicate-props': [2],
|
|
2840
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
2841
|
-
'react/jsx-no-target-blank': [2],
|
|
2842
|
-
'react/jsx-no-undef': [2],
|
|
2843
|
-
'react/jsx-no-useless-fragment': [2],
|
|
2844
|
-
'react/no-children-prop': [2],
|
|
2845
|
-
'react/no-danger-with-children': [2],
|
|
2846
|
-
'react-js/no-deprecated': [2],
|
|
2847
|
-
'react/no-direct-mutation-state': [2],
|
|
2848
|
-
'react/no-find-dom-node': [2],
|
|
2849
|
-
'react/no-is-mounted': [2],
|
|
2850
|
-
'react/no-multi-comp': [2],
|
|
2851
|
-
'react/no-render-return-value': [2],
|
|
2852
|
-
'react/no-string-refs': [2],
|
|
2853
|
-
'react/no-unescaped-entities': [2],
|
|
2854
|
-
'react/no-unknown-property': [2],
|
|
2855
|
-
'react-js/prop-types': [2],
|
|
2856
|
-
'react/require-render-return': [2],
|
|
2857
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
2858
3007
|
'eslint/require-yield': [2],
|
|
2859
3008
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2860
3009
|
'sonarjs/async-test-assertions': [2],
|
|
3010
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2861
3011
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2862
3012
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2863
3013
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2920,14 +3070,17 @@ export default {
|
|
|
2920
3070
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2921
3071
|
'sonarjs/no-code-after-done': [2],
|
|
2922
3072
|
'sonarjs/no-dead-store': [2],
|
|
3073
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2923
3074
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2924
3075
|
'sonarjs/no-default-utility-imports': [2],
|
|
2925
3076
|
'sonarjs/no-delete-var': [2],
|
|
2926
3077
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
3078
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2927
3079
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2928
3080
|
'sonarjs/no-duplicated-branches': [2],
|
|
2929
3081
|
'sonarjs/no-element-overwrite': [2],
|
|
2930
3082
|
'sonarjs/no-empty-collection': [2],
|
|
3083
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2931
3084
|
'sonarjs/no-empty-test-file': [2],
|
|
2932
3085
|
'sonarjs/no-empty-test-title': [2],
|
|
2933
3086
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2960,10 +3113,10 @@ export default {
|
|
|
2960
3113
|
'sonarjs/no-labels': [2],
|
|
2961
3114
|
'sonarjs/no-literal-call': [2],
|
|
2962
3115
|
'sonarjs/no-mime-sniff': [2],
|
|
2963
|
-
'sonarjs/no-
|
|
3116
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2964
3117
|
'sonarjs/no-nested-assignment': [2],
|
|
2965
3118
|
'sonarjs/no-nested-conditional': [2],
|
|
2966
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
3119
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2967
3120
|
'sonarjs/no-nested-template-literals': [2],
|
|
2968
3121
|
'sonarjs/no-os-command-from-path': [2],
|
|
2969
3122
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2987,12 +3140,17 @@ export default {
|
|
|
2987
3140
|
'sonarjs/no-useless-catch': [2],
|
|
2988
3141
|
'sonarjs/no-useless-increment': [2],
|
|
2989
3142
|
'sonarjs/no-useless-react-setstate': [2],
|
|
3143
|
+
'sonarjs/no-vue-class-component': [2],
|
|
3144
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2990
3145
|
'sonarjs/no-weak-cipher': [2],
|
|
2991
3146
|
'sonarjs/no-weak-keys': [2],
|
|
2992
3147
|
'sonarjs/non-existent-operator': [2],
|
|
2993
3148
|
'sonarjs/object-alt-content': [2],
|
|
2994
3149
|
'sonarjs/parameterized-tests': [2],
|
|
3150
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2995
3151
|
'sonarjs/prefer-default-last': [2],
|
|
3152
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
3153
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2996
3154
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2997
3155
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2998
3156
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -3015,12 +3173,15 @@ export default {
|
|
|
3015
3173
|
'sonarjs/table-header': [2],
|
|
3016
3174
|
'sonarjs/table-header-reference': [2],
|
|
3017
3175
|
'sonarjs/test-check-exception': [2],
|
|
3176
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
3177
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
3018
3178
|
'sonarjs/todo-tag': [1],
|
|
3019
3179
|
'sonarjs/unverified-certificate': [2],
|
|
3020
3180
|
'sonarjs/unverified-hostname': [2],
|
|
3021
3181
|
'sonarjs/updated-const-var': [2],
|
|
3022
3182
|
'sonarjs/updated-loop-counter': [2],
|
|
3023
3183
|
'sonarjs/use-type-alias': [2],
|
|
3184
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
3024
3185
|
'sonarjs/weak-ssl': [2],
|
|
3025
3186
|
'sonarjs/x-powered-by': [2],
|
|
3026
3187
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -3484,16 +3645,16 @@ export default {
|
|
|
3484
3645
|
},
|
|
3485
3646
|
},
|
|
3486
3647
|
overrides: [
|
|
3487
|
-
{ files: ['**/*.js'], profile: '
|
|
3488
|
-
{ files: ['**/*.ts'], profile: '
|
|
3489
|
-
{ files: ['**/*.cjs'], profile: '
|
|
3490
|
-
{ files: ['**/*.cts'], profile: '
|
|
3491
|
-
{ files: ['**/*.jsx', '**/*.mjs'], profile: '
|
|
3492
|
-
{ files: ['**/*.mts', '**/*.tsx'], profile: '
|
|
3493
|
-
{ files: ['**/*.vue'], profile: '
|
|
3494
|
-
{ files: ['**/*.d.ts'], profile: '
|
|
3495
|
-
{ files: ['**/*.svelte'], profile: '
|
|
3496
|
-
{ files: ['**/*.svelte.js'], profile: '
|
|
3497
|
-
{ files: ['**/*.svelte.ts'], profile: '
|
|
3648
|
+
{ files: ['**/*.js'], profile: '7f18026b708bafe9' },
|
|
3649
|
+
{ files: ['**/*.ts'], profile: 'e3083f4610795b18' },
|
|
3650
|
+
{ files: ['**/*.cjs'], profile: '7f18026b708bafe9' },
|
|
3651
|
+
{ files: ['**/*.cts'], profile: 'e3083f4610795b18' },
|
|
3652
|
+
{ files: ['**/*.jsx', '**/*.mjs'], profile: '7f18026b708bafe9' },
|
|
3653
|
+
{ files: ['**/*.mts', '**/*.tsx'], profile: 'e3083f4610795b18' },
|
|
3654
|
+
{ files: ['**/*.vue'], profile: '5f5062647375942d' },
|
|
3655
|
+
{ files: ['**/*.d.ts'], profile: 'e3083f4610795b18' },
|
|
3656
|
+
{ files: ['**/*.svelte'], profile: '9aab0dd5b128a0c1' },
|
|
3657
|
+
{ files: ['**/*.svelte.js'], profile: '7f18026b708bafe9' },
|
|
3658
|
+
{ files: ['**/*.svelte.ts'], profile: 'e3083f4610795b18' },
|
|
3498
3659
|
],
|
|
3499
3660
|
}
|