@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,13 +1,13 @@
|
|
|
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', 'react', 'typescript', 'unicorn'],
|
|
5
6
|
jsPlugins: [
|
|
6
7
|
'eslint-js',
|
|
7
8
|
'import-x-js',
|
|
8
|
-
'prettier',
|
|
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' },
|
|
@@ -208,7 +273,6 @@ export default {
|
|
|
208
273
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
209
274
|
'eslint/prefer-template': [2],
|
|
210
275
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
211
|
-
'prettier/prettier': [2],
|
|
212
276
|
'react-hooks-js/config': [2],
|
|
213
277
|
'react/error-boundaries': [2],
|
|
214
278
|
'react/exhaustive-deps': [1],
|
|
@@ -225,45 +289,10 @@ export default {
|
|
|
225
289
|
'react/static-components': [2],
|
|
226
290
|
'react/unsupported-syntax': [1],
|
|
227
291
|
'react/use-memo': [2],
|
|
228
|
-
'react-js/boolean-prop-naming': [2],
|
|
229
|
-
'react/button-has-type': [2],
|
|
230
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
231
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
232
|
-
'react-js/destructuring-assignment': [2],
|
|
233
|
-
'react/display-name': [2],
|
|
234
|
-
'react/function-component-definition': [
|
|
235
|
-
2,
|
|
236
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
237
|
-
],
|
|
238
|
-
'react/hook-use-state': [2],
|
|
239
|
-
'react/jsx-boolean-value': [2],
|
|
240
|
-
'react/jsx-fragments': [2],
|
|
241
|
-
'react/jsx-handler-names': [2],
|
|
242
|
-
'react/jsx-key': [2],
|
|
243
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
244
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
245
|
-
'react/jsx-no-duplicate-props': [2],
|
|
246
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
247
|
-
'react/jsx-no-target-blank': [2],
|
|
248
|
-
'react/jsx-no-undef': [2],
|
|
249
|
-
'react/jsx-no-useless-fragment': [2],
|
|
250
|
-
'react/no-children-prop': [2],
|
|
251
|
-
'react/no-danger-with-children': [2],
|
|
252
|
-
'react-js/no-deprecated': [2],
|
|
253
|
-
'react/no-direct-mutation-state': [2],
|
|
254
|
-
'react/no-find-dom-node': [2],
|
|
255
|
-
'react/no-is-mounted': [2],
|
|
256
|
-
'react/no-multi-comp': [2],
|
|
257
|
-
'react/no-render-return-value': [2],
|
|
258
|
-
'react/no-string-refs': [2],
|
|
259
|
-
'react/no-unescaped-entities': [2],
|
|
260
|
-
'react/no-unknown-property': [2],
|
|
261
|
-
'react-js/prop-types': [2],
|
|
262
|
-
'react/require-render-return': [2],
|
|
263
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
264
292
|
'eslint/require-yield': [2],
|
|
265
293
|
'sonarjs/assertions-in-test-cases': [2],
|
|
266
294
|
'sonarjs/async-test-assertions': [2],
|
|
295
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
267
296
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
268
297
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
269
298
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -326,14 +355,17 @@ export default {
|
|
|
326
355
|
'sonarjs/no-clear-text-protocols': [2],
|
|
327
356
|
'sonarjs/no-code-after-done': [2],
|
|
328
357
|
'sonarjs/no-dead-store': [2],
|
|
358
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
329
359
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
330
360
|
'sonarjs/no-default-utility-imports': [2],
|
|
331
361
|
'sonarjs/no-delete-var': [2],
|
|
332
362
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
363
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
333
364
|
'sonarjs/no-duplicate-test-title': [2],
|
|
334
365
|
'sonarjs/no-duplicated-branches': [2],
|
|
335
366
|
'sonarjs/no-element-overwrite': [2],
|
|
336
367
|
'sonarjs/no-empty-collection': [2],
|
|
368
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
337
369
|
'sonarjs/no-empty-test-file': [2],
|
|
338
370
|
'sonarjs/no-empty-test-title': [2],
|
|
339
371
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -366,10 +398,10 @@ export default {
|
|
|
366
398
|
'sonarjs/no-labels': [2],
|
|
367
399
|
'sonarjs/no-literal-call': [2],
|
|
368
400
|
'sonarjs/no-mime-sniff': [2],
|
|
369
|
-
'sonarjs/no-
|
|
401
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
370
402
|
'sonarjs/no-nested-assignment': [2],
|
|
371
403
|
'sonarjs/no-nested-conditional': [2],
|
|
372
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
404
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
373
405
|
'sonarjs/no-nested-template-literals': [2],
|
|
374
406
|
'sonarjs/no-os-command-from-path': [2],
|
|
375
407
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -393,12 +425,17 @@ export default {
|
|
|
393
425
|
'sonarjs/no-useless-catch': [2],
|
|
394
426
|
'sonarjs/no-useless-increment': [2],
|
|
395
427
|
'sonarjs/no-useless-react-setstate': [2],
|
|
428
|
+
'sonarjs/no-vue-class-component': [2],
|
|
429
|
+
'sonarjs/no-vue-mixins': [2],
|
|
396
430
|
'sonarjs/no-weak-cipher': [2],
|
|
397
431
|
'sonarjs/no-weak-keys': [2],
|
|
398
432
|
'sonarjs/non-existent-operator': [2],
|
|
399
433
|
'sonarjs/object-alt-content': [2],
|
|
400
434
|
'sonarjs/parameterized-tests': [2],
|
|
435
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
401
436
|
'sonarjs/prefer-default-last': [2],
|
|
437
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
438
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
402
439
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
403
440
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
404
441
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -421,12 +458,15 @@ export default {
|
|
|
421
458
|
'sonarjs/table-header': [2],
|
|
422
459
|
'sonarjs/table-header-reference': [2],
|
|
423
460
|
'sonarjs/test-check-exception': [2],
|
|
461
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
462
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
424
463
|
'sonarjs/todo-tag': [1],
|
|
425
464
|
'sonarjs/unverified-certificate': [2],
|
|
426
465
|
'sonarjs/unverified-hostname': [2],
|
|
427
466
|
'sonarjs/updated-const-var': [2],
|
|
428
467
|
'sonarjs/updated-loop-counter': [2],
|
|
429
468
|
'sonarjs/use-type-alias': [2],
|
|
469
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
430
470
|
'sonarjs/weak-ssl': [2],
|
|
431
471
|
'sonarjs/x-powered-by': [2],
|
|
432
472
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -888,8 +928,71 @@ export default {
|
|
|
888
928
|
WeakSet: 'readonly',
|
|
889
929
|
},
|
|
890
930
|
},
|
|
891
|
-
|
|
931
|
+
e3083f4610795b18: {
|
|
892
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],
|
|
893
996
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
894
997
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
895
998
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -905,6 +1008,7 @@ export default {
|
|
|
905
1008
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
906
1009
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
907
1010
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1011
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
908
1012
|
'stylistic-js/jsx-tag-spacing': [
|
|
909
1013
|
2,
|
|
910
1014
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1075,7 +1179,6 @@ export default {
|
|
|
1075
1179
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
1076
1180
|
'eslint/prefer-template': [2],
|
|
1077
1181
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
1078
|
-
'prettier/prettier': [2],
|
|
1079
1182
|
'react-hooks-js/config': [2],
|
|
1080
1183
|
'react/error-boundaries': [2],
|
|
1081
1184
|
'react/exhaustive-deps': [1],
|
|
@@ -1092,45 +1195,10 @@ export default {
|
|
|
1092
1195
|
'react/static-components': [2],
|
|
1093
1196
|
'react/unsupported-syntax': [1],
|
|
1094
1197
|
'react/use-memo': [2],
|
|
1095
|
-
'react-js/boolean-prop-naming': [2],
|
|
1096
|
-
'react/button-has-type': [2],
|
|
1097
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1098
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1099
|
-
'react-js/destructuring-assignment': [2],
|
|
1100
|
-
'react/display-name': [2],
|
|
1101
|
-
'react/function-component-definition': [
|
|
1102
|
-
2,
|
|
1103
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1104
|
-
],
|
|
1105
|
-
'react/hook-use-state': [2],
|
|
1106
|
-
'react/jsx-boolean-value': [2],
|
|
1107
|
-
'react/jsx-fragments': [2],
|
|
1108
|
-
'react/jsx-handler-names': [2],
|
|
1109
|
-
'react/jsx-key': [2],
|
|
1110
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1111
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1112
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1113
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1114
|
-
'react/jsx-no-target-blank': [2],
|
|
1115
|
-
'react/jsx-no-undef': [2],
|
|
1116
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1117
|
-
'react/no-children-prop': [2],
|
|
1118
|
-
'react/no-danger-with-children': [2],
|
|
1119
|
-
'react-js/no-deprecated': [2],
|
|
1120
|
-
'react/no-direct-mutation-state': [2],
|
|
1121
|
-
'react/no-find-dom-node': [2],
|
|
1122
|
-
'react/no-is-mounted': [2],
|
|
1123
|
-
'react/no-multi-comp': [2],
|
|
1124
|
-
'react/no-render-return-value': [2],
|
|
1125
|
-
'react/no-string-refs': [2],
|
|
1126
|
-
'react/no-unescaped-entities': [2],
|
|
1127
|
-
'react/no-unknown-property': [2],
|
|
1128
|
-
'react-js/prop-types': [2],
|
|
1129
|
-
'react/require-render-return': [2],
|
|
1130
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1131
1198
|
'eslint/require-yield': [2],
|
|
1132
1199
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1133
1200
|
'sonarjs/async-test-assertions': [2],
|
|
1201
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1134
1202
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1135
1203
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
1136
1204
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1193,14 +1261,17 @@ export default {
|
|
|
1193
1261
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1194
1262
|
'sonarjs/no-code-after-done': [2],
|
|
1195
1263
|
'sonarjs/no-dead-store': [2],
|
|
1264
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1196
1265
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1197
1266
|
'sonarjs/no-default-utility-imports': [2],
|
|
1198
1267
|
'sonarjs/no-delete-var': [2],
|
|
1199
1268
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1269
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1200
1270
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1201
1271
|
'sonarjs/no-duplicated-branches': [2],
|
|
1202
1272
|
'sonarjs/no-element-overwrite': [2],
|
|
1203
1273
|
'sonarjs/no-empty-collection': [2],
|
|
1274
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1204
1275
|
'sonarjs/no-empty-test-file': [2],
|
|
1205
1276
|
'sonarjs/no-empty-test-title': [2],
|
|
1206
1277
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1233,10 +1304,10 @@ export default {
|
|
|
1233
1304
|
'sonarjs/no-labels': [2],
|
|
1234
1305
|
'sonarjs/no-literal-call': [2],
|
|
1235
1306
|
'sonarjs/no-mime-sniff': [2],
|
|
1236
|
-
'sonarjs/no-
|
|
1307
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1237
1308
|
'sonarjs/no-nested-assignment': [2],
|
|
1238
1309
|
'sonarjs/no-nested-conditional': [2],
|
|
1239
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1310
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1240
1311
|
'sonarjs/no-nested-template-literals': [2],
|
|
1241
1312
|
'sonarjs/no-os-command-from-path': [2],
|
|
1242
1313
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1260,12 +1331,17 @@ export default {
|
|
|
1260
1331
|
'sonarjs/no-useless-catch': [2],
|
|
1261
1332
|
'sonarjs/no-useless-increment': [2],
|
|
1262
1333
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1334
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1335
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1263
1336
|
'sonarjs/no-weak-cipher': [2],
|
|
1264
1337
|
'sonarjs/no-weak-keys': [2],
|
|
1265
1338
|
'sonarjs/non-existent-operator': [2],
|
|
1266
1339
|
'sonarjs/object-alt-content': [2],
|
|
1267
1340
|
'sonarjs/parameterized-tests': [2],
|
|
1341
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1268
1342
|
'sonarjs/prefer-default-last': [2],
|
|
1343
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1344
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1269
1345
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1270
1346
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1271
1347
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -1288,12 +1364,15 @@ export default {
|
|
|
1288
1364
|
'sonarjs/table-header': [2],
|
|
1289
1365
|
'sonarjs/table-header-reference': [2],
|
|
1290
1366
|
'sonarjs/test-check-exception': [2],
|
|
1367
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1368
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1291
1369
|
'sonarjs/todo-tag': [1],
|
|
1292
1370
|
'sonarjs/unverified-certificate': [2],
|
|
1293
1371
|
'sonarjs/unverified-hostname': [2],
|
|
1294
1372
|
'sonarjs/updated-const-var': [2],
|
|
1295
1373
|
'sonarjs/updated-loop-counter': [2],
|
|
1296
1374
|
'sonarjs/use-type-alias': [2],
|
|
1375
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1297
1376
|
'sonarjs/weak-ssl': [2],
|
|
1298
1377
|
'sonarjs/x-powered-by': [2],
|
|
1299
1378
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1755,8 +1834,71 @@ export default {
|
|
|
1755
1834
|
WeakSet: 'readonly',
|
|
1756
1835
|
},
|
|
1757
1836
|
},
|
|
1758
|
-
|
|
1837
|
+
'5f5062647375942d': {
|
|
1759
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],
|
|
1760
1902
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
1761
1903
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
1762
1904
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -1772,6 +1914,7 @@ export default {
|
|
|
1772
1914
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
1773
1915
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
1774
1916
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
1917
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
1775
1918
|
'stylistic-js/jsx-tag-spacing': [
|
|
1776
1919
|
2,
|
|
1777
1920
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -1942,7 +2085,6 @@ export default {
|
|
|
1942
2085
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
1943
2086
|
'eslint/prefer-template': [2],
|
|
1944
2087
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
1945
|
-
'prettier/prettier': [2],
|
|
1946
2088
|
'react-hooks-js/config': [2],
|
|
1947
2089
|
'react/error-boundaries': [2],
|
|
1948
2090
|
'react/exhaustive-deps': [1],
|
|
@@ -1959,45 +2101,10 @@ export default {
|
|
|
1959
2101
|
'react/static-components': [2],
|
|
1960
2102
|
'react/unsupported-syntax': [1],
|
|
1961
2103
|
'react/use-memo': [2],
|
|
1962
|
-
'react-js/boolean-prop-naming': [2],
|
|
1963
|
-
'react/button-has-type': [2],
|
|
1964
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
1965
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
1966
|
-
'react-js/destructuring-assignment': [2],
|
|
1967
|
-
'react/display-name': [2],
|
|
1968
|
-
'react/function-component-definition': [
|
|
1969
|
-
2,
|
|
1970
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
1971
|
-
],
|
|
1972
|
-
'react/hook-use-state': [2],
|
|
1973
|
-
'react/jsx-boolean-value': [2],
|
|
1974
|
-
'react/jsx-fragments': [2],
|
|
1975
|
-
'react/jsx-handler-names': [2],
|
|
1976
|
-
'react/jsx-key': [2],
|
|
1977
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
1978
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
1979
|
-
'react/jsx-no-duplicate-props': [2],
|
|
1980
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
1981
|
-
'react/jsx-no-target-blank': [2],
|
|
1982
|
-
'react/jsx-no-undef': [2],
|
|
1983
|
-
'react/jsx-no-useless-fragment': [2],
|
|
1984
|
-
'react/no-children-prop': [2],
|
|
1985
|
-
'react/no-danger-with-children': [2],
|
|
1986
|
-
'react-js/no-deprecated': [2],
|
|
1987
|
-
'react/no-direct-mutation-state': [2],
|
|
1988
|
-
'react/no-find-dom-node': [2],
|
|
1989
|
-
'react/no-is-mounted': [2],
|
|
1990
|
-
'react/no-multi-comp': [2],
|
|
1991
|
-
'react/no-render-return-value': [2],
|
|
1992
|
-
'react/no-string-refs': [2],
|
|
1993
|
-
'react/no-unescaped-entities': [2],
|
|
1994
|
-
'react/no-unknown-property': [2],
|
|
1995
|
-
'react-js/prop-types': [2],
|
|
1996
|
-
'react/require-render-return': [2],
|
|
1997
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
1998
2104
|
'eslint/require-yield': [2],
|
|
1999
2105
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2000
2106
|
'sonarjs/async-test-assertions': [2],
|
|
2107
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2001
2108
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2002
2109
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2003
2110
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2060,14 +2167,17 @@ export default {
|
|
|
2060
2167
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2061
2168
|
'sonarjs/no-code-after-done': [2],
|
|
2062
2169
|
'sonarjs/no-dead-store': [2],
|
|
2170
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2063
2171
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2064
2172
|
'sonarjs/no-default-utility-imports': [2],
|
|
2065
2173
|
'sonarjs/no-delete-var': [2],
|
|
2066
2174
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
2175
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2067
2176
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2068
2177
|
'sonarjs/no-duplicated-branches': [2],
|
|
2069
2178
|
'sonarjs/no-element-overwrite': [2],
|
|
2070
2179
|
'sonarjs/no-empty-collection': [2],
|
|
2180
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2071
2181
|
'sonarjs/no-empty-test-file': [2],
|
|
2072
2182
|
'sonarjs/no-empty-test-title': [2],
|
|
2073
2183
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2100,10 +2210,10 @@ export default {
|
|
|
2100
2210
|
'sonarjs/no-labels': [2],
|
|
2101
2211
|
'sonarjs/no-literal-call': [2],
|
|
2102
2212
|
'sonarjs/no-mime-sniff': [2],
|
|
2103
|
-
'sonarjs/no-
|
|
2213
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2104
2214
|
'sonarjs/no-nested-assignment': [2],
|
|
2105
2215
|
'sonarjs/no-nested-conditional': [2],
|
|
2106
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
2216
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2107
2217
|
'sonarjs/no-nested-template-literals': [2],
|
|
2108
2218
|
'sonarjs/no-os-command-from-path': [2],
|
|
2109
2219
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2127,12 +2237,17 @@ export default {
|
|
|
2127
2237
|
'sonarjs/no-useless-catch': [2],
|
|
2128
2238
|
'sonarjs/no-useless-increment': [2],
|
|
2129
2239
|
'sonarjs/no-useless-react-setstate': [2],
|
|
2240
|
+
'sonarjs/no-vue-class-component': [2],
|
|
2241
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2130
2242
|
'sonarjs/no-weak-cipher': [2],
|
|
2131
2243
|
'sonarjs/no-weak-keys': [2],
|
|
2132
2244
|
'sonarjs/non-existent-operator': [2],
|
|
2133
2245
|
'sonarjs/object-alt-content': [2],
|
|
2134
2246
|
'sonarjs/parameterized-tests': [2],
|
|
2247
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2135
2248
|
'sonarjs/prefer-default-last': [2],
|
|
2249
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
2250
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2136
2251
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2137
2252
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2138
2253
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -2155,12 +2270,15 @@ export default {
|
|
|
2155
2270
|
'sonarjs/table-header': [2],
|
|
2156
2271
|
'sonarjs/table-header-reference': [2],
|
|
2157
2272
|
'sonarjs/test-check-exception': [2],
|
|
2273
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
2274
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
2158
2275
|
'sonarjs/todo-tag': [1],
|
|
2159
2276
|
'sonarjs/unverified-certificate': [2],
|
|
2160
2277
|
'sonarjs/unverified-hostname': [2],
|
|
2161
2278
|
'sonarjs/updated-const-var': [2],
|
|
2162
2279
|
'sonarjs/updated-loop-counter': [2],
|
|
2163
2280
|
'sonarjs/use-type-alias': [2],
|
|
2281
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
2164
2282
|
'sonarjs/weak-ssl': [2],
|
|
2165
2283
|
'sonarjs/x-powered-by': [2],
|
|
2166
2284
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -2622,8 +2740,71 @@ export default {
|
|
|
2622
2740
|
WeakSet: 'readonly',
|
|
2623
2741
|
},
|
|
2624
2742
|
},
|
|
2625
|
-
'
|
|
2743
|
+
'9aab0dd5b128a0c1': {
|
|
2626
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],
|
|
2627
2808
|
'stylistic-js/jsx-closing-bracket-location': [2, 'tag-aligned'],
|
|
2628
2809
|
'stylistic-js/jsx-closing-tag-location': [2, 'tag-aligned'],
|
|
2629
2810
|
'stylistic-js/jsx-curly-brace-presence': [
|
|
@@ -2639,6 +2820,7 @@ export default {
|
|
|
2639
2820
|
'stylistic-js/jsx-first-prop-new-line': [2, 'multiline'],
|
|
2640
2821
|
'stylistic-js/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
|
|
2641
2822
|
'stylistic-js/jsx-props-no-multi-spaces': [2],
|
|
2823
|
+
'stylistic-js/jsx-self-closing-comp': [2, { component: true, html: true }],
|
|
2642
2824
|
'stylistic-js/jsx-tag-spacing': [
|
|
2643
2825
|
2,
|
|
2644
2826
|
{ closingSlash: 'never', beforeSelfClosing: 'always', afterOpening: 'never', beforeClosing: 'allow' },
|
|
@@ -2806,7 +2988,6 @@ export default {
|
|
|
2806
2988
|
'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
|
|
2807
2989
|
'eslint/prefer-template': [2],
|
|
2808
2990
|
'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
|
|
2809
|
-
'prettier/prettier': 'off',
|
|
2810
2991
|
'react-hooks-js/config': [2],
|
|
2811
2992
|
'react/error-boundaries': [2],
|
|
2812
2993
|
'react/exhaustive-deps': [1],
|
|
@@ -2823,45 +3004,10 @@ export default {
|
|
|
2823
3004
|
'react/static-components': [2],
|
|
2824
3005
|
'react/unsupported-syntax': [1],
|
|
2825
3006
|
'react/use-memo': [2],
|
|
2826
|
-
'react-js/boolean-prop-naming': [2],
|
|
2827
|
-
'react/button-has-type': [2],
|
|
2828
|
-
'react/checked-requires-onchange-or-readonly': [2],
|
|
2829
|
-
'react-js/default-props-match-prop-types': [2, { allowRequiredDefaults: true }],
|
|
2830
|
-
'react-js/destructuring-assignment': [2],
|
|
2831
|
-
'react/display-name': [2],
|
|
2832
|
-
'react/function-component-definition': [
|
|
2833
|
-
2,
|
|
2834
|
-
{ namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
|
|
2835
|
-
],
|
|
2836
|
-
'react/hook-use-state': [2],
|
|
2837
|
-
'react/jsx-boolean-value': [2],
|
|
2838
|
-
'react/jsx-fragments': [2],
|
|
2839
|
-
'react/jsx-handler-names': [2],
|
|
2840
|
-
'react/jsx-key': [2],
|
|
2841
|
-
'react/jsx-no-comment-textnodes': [2],
|
|
2842
|
-
'react/jsx-no-constructed-context-values': [2],
|
|
2843
|
-
'react/jsx-no-duplicate-props': [2],
|
|
2844
|
-
'react-js/jsx-no-leaked-render': [2],
|
|
2845
|
-
'react/jsx-no-target-blank': [2],
|
|
2846
|
-
'react/jsx-no-undef': [2],
|
|
2847
|
-
'react/jsx-no-useless-fragment': [2],
|
|
2848
|
-
'react/no-children-prop': [2],
|
|
2849
|
-
'react/no-danger-with-children': [2],
|
|
2850
|
-
'react-js/no-deprecated': [2],
|
|
2851
|
-
'react/no-direct-mutation-state': [2],
|
|
2852
|
-
'react/no-find-dom-node': [2],
|
|
2853
|
-
'react/no-is-mounted': [2],
|
|
2854
|
-
'react/no-multi-comp': [2],
|
|
2855
|
-
'react/no-render-return-value': [2],
|
|
2856
|
-
'react/no-string-refs': [2],
|
|
2857
|
-
'react/no-unescaped-entities': [2],
|
|
2858
|
-
'react/no-unknown-property': [2],
|
|
2859
|
-
'react-js/prop-types': [2],
|
|
2860
|
-
'react/require-render-return': [2],
|
|
2861
|
-
'react/self-closing-comp': [2, { component: true, html: true }],
|
|
2862
3007
|
'eslint/require-yield': [2],
|
|
2863
3008
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2864
3009
|
'sonarjs/async-test-assertions': [2],
|
|
3010
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2865
3011
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2866
3012
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2867
3013
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2924,14 +3070,17 @@ export default {
|
|
|
2924
3070
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2925
3071
|
'sonarjs/no-code-after-done': [2],
|
|
2926
3072
|
'sonarjs/no-dead-store': [2],
|
|
3073
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2927
3074
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2928
3075
|
'sonarjs/no-default-utility-imports': [2],
|
|
2929
3076
|
'sonarjs/no-delete-var': [2],
|
|
2930
3077
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
3078
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2931
3079
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2932
3080
|
'sonarjs/no-duplicated-branches': [2],
|
|
2933
3081
|
'sonarjs/no-element-overwrite': [2],
|
|
2934
3082
|
'sonarjs/no-empty-collection': [2],
|
|
3083
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2935
3084
|
'sonarjs/no-empty-test-file': [2],
|
|
2936
3085
|
'sonarjs/no-empty-test-title': [2],
|
|
2937
3086
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2964,10 +3113,10 @@ export default {
|
|
|
2964
3113
|
'sonarjs/no-labels': [2],
|
|
2965
3114
|
'sonarjs/no-literal-call': [2],
|
|
2966
3115
|
'sonarjs/no-mime-sniff': [2],
|
|
2967
|
-
'sonarjs/no-
|
|
3116
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2968
3117
|
'sonarjs/no-nested-assignment': [2],
|
|
2969
3118
|
'sonarjs/no-nested-conditional': [2],
|
|
2970
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
3119
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2971
3120
|
'sonarjs/no-nested-template-literals': [2],
|
|
2972
3121
|
'sonarjs/no-os-command-from-path': [2],
|
|
2973
3122
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2991,12 +3140,17 @@ export default {
|
|
|
2991
3140
|
'sonarjs/no-useless-catch': [2],
|
|
2992
3141
|
'sonarjs/no-useless-increment': [2],
|
|
2993
3142
|
'sonarjs/no-useless-react-setstate': [2],
|
|
3143
|
+
'sonarjs/no-vue-class-component': [2],
|
|
3144
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2994
3145
|
'sonarjs/no-weak-cipher': [2],
|
|
2995
3146
|
'sonarjs/no-weak-keys': [2],
|
|
2996
3147
|
'sonarjs/non-existent-operator': [2],
|
|
2997
3148
|
'sonarjs/object-alt-content': [2],
|
|
2998
3149
|
'sonarjs/parameterized-tests': [2],
|
|
3150
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2999
3151
|
'sonarjs/prefer-default-last': [2],
|
|
3152
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
3153
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
3000
3154
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
3001
3155
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
3002
3156
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -3019,12 +3173,15 @@ export default {
|
|
|
3019
3173
|
'sonarjs/table-header': [2],
|
|
3020
3174
|
'sonarjs/table-header-reference': [2],
|
|
3021
3175
|
'sonarjs/test-check-exception': [2],
|
|
3176
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
3177
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
3022
3178
|
'sonarjs/todo-tag': [1],
|
|
3023
3179
|
'sonarjs/unverified-certificate': [2],
|
|
3024
3180
|
'sonarjs/unverified-hostname': [2],
|
|
3025
3181
|
'sonarjs/updated-const-var': [2],
|
|
3026
3182
|
'sonarjs/updated-loop-counter': [2],
|
|
3027
3183
|
'sonarjs/use-type-alias': [2],
|
|
3184
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
3028
3185
|
'sonarjs/weak-ssl': [2],
|
|
3029
3186
|
'sonarjs/x-powered-by': [2],
|
|
3030
3187
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -3488,16 +3645,16 @@ export default {
|
|
|
3488
3645
|
},
|
|
3489
3646
|
},
|
|
3490
3647
|
overrides: [
|
|
3491
|
-
{ files: ['**/*.js'], profile: '
|
|
3492
|
-
{ files: ['**/*.ts'], profile: '
|
|
3493
|
-
{ files: ['**/*.cjs'], profile: '
|
|
3494
|
-
{ files: ['**/*.cts'], profile: '
|
|
3495
|
-
{ files: ['**/*.jsx', '**/*.mjs'], profile: '
|
|
3496
|
-
{ files: ['**/*.mts', '**/*.tsx'], profile: '
|
|
3497
|
-
{ files: ['**/*.vue'], profile: '
|
|
3498
|
-
{ files: ['**/*.d.ts'], profile: '
|
|
3499
|
-
{ files: ['**/*.svelte'], profile: '
|
|
3500
|
-
{ files: ['**/*.svelte.js'], profile: '
|
|
3501
|
-
{ 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' },
|
|
3502
3659
|
],
|
|
3503
3660
|
}
|