@st1ggy/linter-config 8.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -34
- package/data/linter-config-inventory.json +451 -216
- package/data/oxlint-config-inventory.json +1075 -1074
- package/data/oxlint-rule-map.json +5329 -2075
- package/data/oxlint-source-inventory.json +8175 -5661
- package/docs/OXLINT_RULE_MAPPING.md +213 -105
- package/docs/RULE_MAPPING.md +2 -2
- package/package.json +110 -19
- package/scripts/README.md +9 -6
- package/scripts/init-angular-ox.sh +4 -0
- package/scripts/init-nuxt-ox.sh +4 -0
- package/scripts/init-vue-ox.sh +4 -0
- package/scripts/linter-init-core.mjs +32 -15
- package/scripts/linter-init.mjs +4 -2
- package/src/eslint/configs/config.common.js +4 -1
- package/src/eslint/configs/config.import.js +1 -1
- package/src/eslint/configs/config.prettier.js +1 -1
- package/src/eslint/configs/config.react.js +19 -26
- package/src/eslint/configs/config.solid.js +1 -1
- package/src/eslint/configs/config.sonarjs.js +1 -1
- package/src/eslint/configs/config.typescript.js +6 -0
- package/src/eslint/configs/config.unicorn.js +8 -19
- package/src/eslint/configs/import-plugin.js +48 -0
- package/src/eslint/configs/svelte-stack.js +5 -12
- package/src/eslint/eslint.config.angular-ox.js +26 -0
- package/src/eslint/eslint.config.astro-ox.js +3 -0
- package/src/eslint/eslint.config.nuxt-ox.js +4 -0
- package/src/eslint/eslint.config.svelte-ox.js +4 -0
- package/src/eslint/eslint.config.vue-ox.js +17 -0
- package/src/eslint/ox-supplement.d.ts +39 -0
- package/src/oxfmt/index.d.ts +24 -0
- package/src/oxfmt/oxfmt.config.angular.js +3 -0
- package/src/oxfmt/oxfmt.config.astro.js +3 -0
- package/src/oxfmt/oxfmt.config.common.js +9 -1
- package/src/oxfmt/oxfmt.config.svelte.js +3 -0
- package/src/oxlint/configs/config.astro.js +134 -176
- package/src/oxlint/configs/config.common.js +107 -151
- package/src/oxlint/configs/config.next.js +365 -300
- package/src/oxlint/configs/config.react.js +365 -300
- package/src/oxlint/configs/config.solid.js +157 -223
- package/src/oxlint/configs/config.svelte.js +121 -190
- package/src/oxlint/create-config.js +1 -1
- package/src/oxlint/framework-rules.js +79 -0
- package/src/oxlint/index.d.ts +24 -0
- package/src/oxlint/oxlint.config.angular.js +14 -0
- package/src/oxlint/oxlint.config.nuxt.js +24 -0
- package/src/oxlint/oxlint.config.vue.js +8 -0
- package/src/oxlint/plugins/angular.js +1 -0
- package/src/oxlint/plugins/import-x.js +1 -1
- package/src/oxlint/plugins/nuxt.js +1 -0
- package/src/oxlint/plugins/react.js +1 -1
- package/src/oxlint/stacks.js +22 -8
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
react: { version: '999.999.999' },
|
|
13
13
|
},
|
|
14
14
|
profiles: {
|
|
15
|
-
|
|
15
|
+
'4bd06b5dab6f014b': {
|
|
16
16
|
rules: {
|
|
17
17
|
'stylistic-js/lines-between-class-members': [
|
|
18
18
|
2,
|
|
@@ -32,6 +32,7 @@ export default {
|
|
|
32
32
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
33
33
|
'typescript/adjacent-overload-signatures': [2],
|
|
34
34
|
'typescript-js/array-type': [2],
|
|
35
|
+
'typescript/await-thenable': [2],
|
|
35
36
|
'typescript/ban-ts-comment': [
|
|
36
37
|
2,
|
|
37
38
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -50,14 +51,18 @@ export default {
|
|
|
50
51
|
'typescript/no-empty-object-type': [2],
|
|
51
52
|
'typescript/no-explicit-any': [2],
|
|
52
53
|
'typescript/no-extra-non-null-assertion': [2],
|
|
54
|
+
'typescript/no-floating-promises': [2],
|
|
53
55
|
'typescript/no-inferrable-types': [2],
|
|
54
56
|
'typescript/no-misused-new': [2],
|
|
57
|
+
'typescript/no-misused-promises': [2],
|
|
55
58
|
'typescript/no-namespace': [2],
|
|
56
59
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
57
60
|
'typescript/no-require-imports': [2],
|
|
58
61
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
59
62
|
'typescript/no-this-alias': [2],
|
|
63
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
60
64
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
65
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
61
66
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
62
67
|
'typescript/no-unsafe-function-type': [2],
|
|
63
68
|
'eslint/no-unused-expressions': [
|
|
@@ -70,6 +75,7 @@ export default {
|
|
|
70
75
|
'typescript/prefer-for-of': [2],
|
|
71
76
|
'typescript/prefer-function-type': [2],
|
|
72
77
|
'typescript/prefer-namespace-keyword': [2],
|
|
78
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
73
79
|
'typescript/switch-exhaustiveness-check': [2],
|
|
74
80
|
'typescript/triple-slash-reference': [2],
|
|
75
81
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -78,6 +84,7 @@ export default {
|
|
|
78
84
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
79
85
|
],
|
|
80
86
|
'eslint/constructor-super': [2],
|
|
87
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
81
88
|
'eslint/for-direction': [2],
|
|
82
89
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
83
90
|
'import/default': [2],
|
|
@@ -89,20 +96,7 @@ export default {
|
|
|
89
96
|
'import/no-named-as-default': [1],
|
|
90
97
|
'import/no-named-as-default-member': [1],
|
|
91
98
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
92
|
-
'
|
|
93
|
-
2,
|
|
94
|
-
{
|
|
95
|
-
'newlines-between': 'always',
|
|
96
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
97
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
98
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
99
|
-
distinctGroup: true,
|
|
100
|
-
sortTypesGroup: false,
|
|
101
|
-
named: false,
|
|
102
|
-
warnOnUnassignedImports: false,
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
'eslint-js/newline-before-return': [2],
|
|
99
|
+
'eslint/max-depth': [1, 4],
|
|
106
100
|
'eslint/no-async-promise-executor': [2],
|
|
107
101
|
'eslint/no-case-declarations': [2],
|
|
108
102
|
'eslint/no-class-assign': [2],
|
|
@@ -120,6 +114,7 @@ export default {
|
|
|
120
114
|
'eslint/no-dupe-else-if': [2],
|
|
121
115
|
'eslint/no-dupe-keys': [2],
|
|
122
116
|
'eslint/no-duplicate-case': [2],
|
|
117
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
123
118
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
124
119
|
'eslint/no-empty-character-class': [2],
|
|
125
120
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -183,6 +178,7 @@ export default {
|
|
|
183
178
|
'eslint/require-yield': [2],
|
|
184
179
|
'sonarjs/assertions-in-test-cases': [2],
|
|
185
180
|
'sonarjs/async-test-assertions': [2],
|
|
181
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
186
182
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
187
183
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
188
184
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -245,14 +241,17 @@ export default {
|
|
|
245
241
|
'sonarjs/no-clear-text-protocols': [2],
|
|
246
242
|
'sonarjs/no-code-after-done': [2],
|
|
247
243
|
'sonarjs/no-dead-store': [2],
|
|
244
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
248
245
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
249
246
|
'sonarjs/no-default-utility-imports': [2],
|
|
250
247
|
'sonarjs/no-delete-var': [2],
|
|
251
248
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
249
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
252
250
|
'sonarjs/no-duplicate-test-title': [2],
|
|
253
251
|
'sonarjs/no-duplicated-branches': [2],
|
|
254
252
|
'sonarjs/no-element-overwrite': [2],
|
|
255
253
|
'sonarjs/no-empty-collection': [2],
|
|
254
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
256
255
|
'sonarjs/no-empty-test-file': [2],
|
|
257
256
|
'sonarjs/no-empty-test-title': [2],
|
|
258
257
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -285,10 +284,10 @@ export default {
|
|
|
285
284
|
'sonarjs/no-labels': [2],
|
|
286
285
|
'sonarjs/no-literal-call': [2],
|
|
287
286
|
'sonarjs/no-mime-sniff': [2],
|
|
288
|
-
'sonarjs/no-
|
|
287
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
289
288
|
'sonarjs/no-nested-assignment': [2],
|
|
290
289
|
'sonarjs/no-nested-conditional': [2],
|
|
291
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
290
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
292
291
|
'sonarjs/no-nested-template-literals': [2],
|
|
293
292
|
'sonarjs/no-os-command-from-path': [2],
|
|
294
293
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -312,12 +311,17 @@ export default {
|
|
|
312
311
|
'sonarjs/no-useless-catch': [2],
|
|
313
312
|
'sonarjs/no-useless-increment': [2],
|
|
314
313
|
'sonarjs/no-useless-react-setstate': [2],
|
|
314
|
+
'sonarjs/no-vue-class-component': [2],
|
|
315
|
+
'sonarjs/no-vue-mixins': [2],
|
|
315
316
|
'sonarjs/no-weak-cipher': [2],
|
|
316
317
|
'sonarjs/no-weak-keys': [2],
|
|
317
318
|
'sonarjs/non-existent-operator': [2],
|
|
318
319
|
'sonarjs/object-alt-content': [2],
|
|
319
320
|
'sonarjs/parameterized-tests': [2],
|
|
321
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
320
322
|
'sonarjs/prefer-default-last': [2],
|
|
323
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
324
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
321
325
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
322
326
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
323
327
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -340,12 +344,15 @@ export default {
|
|
|
340
344
|
'sonarjs/table-header': [2],
|
|
341
345
|
'sonarjs/table-header-reference': [2],
|
|
342
346
|
'sonarjs/test-check-exception': [2],
|
|
347
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
348
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
343
349
|
'sonarjs/todo-tag': [1],
|
|
344
350
|
'sonarjs/unverified-certificate': [2],
|
|
345
351
|
'sonarjs/unverified-hostname': [2],
|
|
346
352
|
'sonarjs/updated-const-var': [2],
|
|
347
353
|
'sonarjs/updated-loop-counter': [2],
|
|
348
354
|
'sonarjs/use-type-alias': [2],
|
|
355
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
349
356
|
'sonarjs/weak-ssl': [2],
|
|
350
357
|
'sonarjs/x-powered-by': [2],
|
|
351
358
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -393,7 +400,6 @@ export default {
|
|
|
393
400
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
394
401
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
395
402
|
'unicorn/consistent-date-clone': [2],
|
|
396
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
397
403
|
'unicorn/consistent-empty-array-spread': [2],
|
|
398
404
|
'unicorn/consistent-existence-index-check': [2],
|
|
399
405
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -428,22 +434,6 @@ export default {
|
|
|
428
434
|
],
|
|
429
435
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
430
436
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
431
|
-
'unicorn-js/name-replacements': [
|
|
432
|
-
2,
|
|
433
|
-
{
|
|
434
|
-
replacements: {
|
|
435
|
-
dev: false,
|
|
436
|
-
prod: false,
|
|
437
|
-
props: false,
|
|
438
|
-
ref: false,
|
|
439
|
-
refs: false,
|
|
440
|
-
args: false,
|
|
441
|
-
params: false,
|
|
442
|
-
utils: false,
|
|
443
|
-
env: false,
|
|
444
|
-
},
|
|
445
|
-
},
|
|
446
|
-
],
|
|
447
437
|
'unicorn/new-for-builtins': [2],
|
|
448
438
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
449
439
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -552,7 +542,6 @@ export default {
|
|
|
552
542
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
553
543
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
554
544
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
555
|
-
'unicorn-js/no-unused-properties': [2],
|
|
556
545
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
557
546
|
'unicorn-js/no-useless-coercion': [2],
|
|
558
547
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -807,7 +796,7 @@ export default {
|
|
|
807
796
|
WeakSet: 'readonly',
|
|
808
797
|
},
|
|
809
798
|
},
|
|
810
|
-
|
|
799
|
+
'73801d264792d2f0': {
|
|
811
800
|
rules: {
|
|
812
801
|
'stylistic-js/lines-between-class-members': [
|
|
813
802
|
2,
|
|
@@ -827,6 +816,7 @@ export default {
|
|
|
827
816
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
828
817
|
'typescript/adjacent-overload-signatures': [2],
|
|
829
818
|
'typescript-js/array-type': [2],
|
|
819
|
+
'typescript/await-thenable': [2],
|
|
830
820
|
'typescript/ban-ts-comment': [
|
|
831
821
|
2,
|
|
832
822
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -845,14 +835,18 @@ export default {
|
|
|
845
835
|
'typescript/no-empty-object-type': [2],
|
|
846
836
|
'typescript/no-explicit-any': [2],
|
|
847
837
|
'typescript/no-extra-non-null-assertion': [2],
|
|
838
|
+
'typescript/no-floating-promises': [2],
|
|
848
839
|
'typescript/no-inferrable-types': [2],
|
|
849
840
|
'typescript/no-misused-new': [2],
|
|
841
|
+
'typescript/no-misused-promises': [2],
|
|
850
842
|
'typescript/no-namespace': [2],
|
|
851
843
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
852
844
|
'typescript/no-require-imports': [2],
|
|
853
845
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
854
846
|
'typescript/no-this-alias': [2],
|
|
847
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
855
848
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
849
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
856
850
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
857
851
|
'typescript/no-unsafe-function-type': [2],
|
|
858
852
|
'eslint/no-unused-expressions': [
|
|
@@ -865,6 +859,7 @@ export default {
|
|
|
865
859
|
'typescript/prefer-for-of': [2],
|
|
866
860
|
'typescript/prefer-function-type': [2],
|
|
867
861
|
'typescript/prefer-namespace-keyword': [2],
|
|
862
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
868
863
|
'typescript/switch-exhaustiveness-check': [2],
|
|
869
864
|
'typescript/triple-slash-reference': [2],
|
|
870
865
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -873,6 +868,7 @@ export default {
|
|
|
873
868
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
874
869
|
],
|
|
875
870
|
'eslint/constructor-super': 'off',
|
|
871
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
876
872
|
'eslint/for-direction': [2],
|
|
877
873
|
'eslint/getter-return': 'off',
|
|
878
874
|
'import/default': [2],
|
|
@@ -884,20 +880,7 @@ export default {
|
|
|
884
880
|
'import/no-named-as-default': [1],
|
|
885
881
|
'import/no-named-as-default-member': [1],
|
|
886
882
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
887
|
-
'
|
|
888
|
-
2,
|
|
889
|
-
{
|
|
890
|
-
'newlines-between': 'always',
|
|
891
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
892
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
893
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
894
|
-
distinctGroup: true,
|
|
895
|
-
sortTypesGroup: false,
|
|
896
|
-
named: false,
|
|
897
|
-
warnOnUnassignedImports: false,
|
|
898
|
-
},
|
|
899
|
-
],
|
|
900
|
-
'eslint-js/newline-before-return': [2],
|
|
883
|
+
'eslint/max-depth': [1, 4],
|
|
901
884
|
'eslint/no-async-promise-executor': [2],
|
|
902
885
|
'eslint/no-case-declarations': [2],
|
|
903
886
|
'eslint/no-class-assign': 'off',
|
|
@@ -915,6 +898,7 @@ export default {
|
|
|
915
898
|
'eslint/no-dupe-else-if': [2],
|
|
916
899
|
'eslint/no-dupe-keys': 'off',
|
|
917
900
|
'eslint/no-duplicate-case': [2],
|
|
901
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
918
902
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
919
903
|
'eslint/no-empty-character-class': [2],
|
|
920
904
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -978,6 +962,7 @@ export default {
|
|
|
978
962
|
'eslint/require-yield': [2],
|
|
979
963
|
'sonarjs/assertions-in-test-cases': [2],
|
|
980
964
|
'sonarjs/async-test-assertions': [2],
|
|
965
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
981
966
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
982
967
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
983
968
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1040,14 +1025,17 @@ export default {
|
|
|
1040
1025
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1041
1026
|
'sonarjs/no-code-after-done': [2],
|
|
1042
1027
|
'sonarjs/no-dead-store': [2],
|
|
1028
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1043
1029
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1044
1030
|
'sonarjs/no-default-utility-imports': [2],
|
|
1045
1031
|
'sonarjs/no-delete-var': [2],
|
|
1046
1032
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1033
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1047
1034
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1048
1035
|
'sonarjs/no-duplicated-branches': [2],
|
|
1049
1036
|
'sonarjs/no-element-overwrite': [2],
|
|
1050
1037
|
'sonarjs/no-empty-collection': [2],
|
|
1038
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1051
1039
|
'sonarjs/no-empty-test-file': [2],
|
|
1052
1040
|
'sonarjs/no-empty-test-title': [2],
|
|
1053
1041
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1080,10 +1068,10 @@ export default {
|
|
|
1080
1068
|
'sonarjs/no-labels': [2],
|
|
1081
1069
|
'sonarjs/no-literal-call': [2],
|
|
1082
1070
|
'sonarjs/no-mime-sniff': [2],
|
|
1083
|
-
'sonarjs/no-
|
|
1071
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1084
1072
|
'sonarjs/no-nested-assignment': [2],
|
|
1085
1073
|
'sonarjs/no-nested-conditional': [2],
|
|
1086
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1074
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1087
1075
|
'sonarjs/no-nested-template-literals': [2],
|
|
1088
1076
|
'sonarjs/no-os-command-from-path': [2],
|
|
1089
1077
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1107,12 +1095,17 @@ export default {
|
|
|
1107
1095
|
'sonarjs/no-useless-catch': [2],
|
|
1108
1096
|
'sonarjs/no-useless-increment': [2],
|
|
1109
1097
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1098
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1099
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1110
1100
|
'sonarjs/no-weak-cipher': [2],
|
|
1111
1101
|
'sonarjs/no-weak-keys': [2],
|
|
1112
1102
|
'sonarjs/non-existent-operator': [2],
|
|
1113
1103
|
'sonarjs/object-alt-content': [2],
|
|
1114
1104
|
'sonarjs/parameterized-tests': [2],
|
|
1105
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1115
1106
|
'sonarjs/prefer-default-last': [2],
|
|
1107
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1108
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1116
1109
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1117
1110
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1118
1111
|
'typescript/prefer-regexp-exec': [2],
|
|
@@ -1135,12 +1128,15 @@ export default {
|
|
|
1135
1128
|
'sonarjs/table-header': [2],
|
|
1136
1129
|
'sonarjs/table-header-reference': [2],
|
|
1137
1130
|
'sonarjs/test-check-exception': [2],
|
|
1131
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1132
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1138
1133
|
'sonarjs/todo-tag': [1],
|
|
1139
1134
|
'sonarjs/unverified-certificate': [2],
|
|
1140
1135
|
'sonarjs/unverified-hostname': [2],
|
|
1141
1136
|
'sonarjs/updated-const-var': [2],
|
|
1142
1137
|
'sonarjs/updated-loop-counter': [2],
|
|
1143
1138
|
'sonarjs/use-type-alias': [2],
|
|
1139
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1144
1140
|
'sonarjs/weak-ssl': [2],
|
|
1145
1141
|
'sonarjs/x-powered-by': [2],
|
|
1146
1142
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1188,7 +1184,6 @@ export default {
|
|
|
1188
1184
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
1189
1185
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
1190
1186
|
'unicorn/consistent-date-clone': [2],
|
|
1191
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
1192
1187
|
'unicorn/consistent-empty-array-spread': [2],
|
|
1193
1188
|
'unicorn/consistent-existence-index-check': [2],
|
|
1194
1189
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -1223,22 +1218,6 @@ export default {
|
|
|
1223
1218
|
],
|
|
1224
1219
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
1225
1220
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
1226
|
-
'unicorn-js/name-replacements': [
|
|
1227
|
-
2,
|
|
1228
|
-
{
|
|
1229
|
-
replacements: {
|
|
1230
|
-
dev: false,
|
|
1231
|
-
prod: false,
|
|
1232
|
-
props: false,
|
|
1233
|
-
ref: false,
|
|
1234
|
-
refs: false,
|
|
1235
|
-
args: false,
|
|
1236
|
-
params: false,
|
|
1237
|
-
utils: false,
|
|
1238
|
-
env: false,
|
|
1239
|
-
},
|
|
1240
|
-
},
|
|
1241
|
-
],
|
|
1242
1221
|
'unicorn/new-for-builtins': [2],
|
|
1243
1222
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
1244
1223
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -1347,7 +1326,6 @@ export default {
|
|
|
1347
1326
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
1348
1327
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
1349
1328
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
1350
|
-
'unicorn-js/no-unused-properties': [2],
|
|
1351
1329
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
1352
1330
|
'unicorn-js/no-useless-coercion': [2],
|
|
1353
1331
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -1602,7 +1580,7 @@ export default {
|
|
|
1602
1580
|
WeakSet: 'readonly',
|
|
1603
1581
|
},
|
|
1604
1582
|
},
|
|
1605
|
-
'
|
|
1583
|
+
'7e18c0dc69bd33e0': {
|
|
1606
1584
|
rules: {
|
|
1607
1585
|
'stylistic-js/lines-between-class-members': [
|
|
1608
1586
|
2,
|
|
@@ -1622,6 +1600,7 @@ export default {
|
|
|
1622
1600
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
1623
1601
|
'typescript/adjacent-overload-signatures': [2],
|
|
1624
1602
|
'typescript-js/array-type': [2],
|
|
1603
|
+
'typescript/await-thenable': 'off',
|
|
1625
1604
|
'typescript/ban-ts-comment': [
|
|
1626
1605
|
2,
|
|
1627
1606
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -1640,14 +1619,18 @@ export default {
|
|
|
1640
1619
|
'typescript/no-empty-object-type': [2],
|
|
1641
1620
|
'typescript/no-explicit-any': [2],
|
|
1642
1621
|
'typescript/no-extra-non-null-assertion': [2],
|
|
1622
|
+
'typescript/no-floating-promises': 'off',
|
|
1643
1623
|
'typescript/no-inferrable-types': [2],
|
|
1644
1624
|
'typescript/no-misused-new': [2],
|
|
1625
|
+
'typescript/no-misused-promises': 'off',
|
|
1645
1626
|
'typescript/no-namespace': [2],
|
|
1646
1627
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
1647
1628
|
'typescript/no-require-imports': [2],
|
|
1648
1629
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
1649
1630
|
'typescript/no-this-alias': [2],
|
|
1631
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
1650
1632
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
1633
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
1651
1634
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
1652
1635
|
'typescript/no-unsafe-function-type': [2],
|
|
1653
1636
|
'eslint/no-unused-expressions': [
|
|
@@ -1660,6 +1643,7 @@ export default {
|
|
|
1660
1643
|
'typescript/prefer-for-of': [2],
|
|
1661
1644
|
'typescript/prefer-function-type': [2],
|
|
1662
1645
|
'typescript/prefer-namespace-keyword': [2],
|
|
1646
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
1663
1647
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
1664
1648
|
'typescript/triple-slash-reference': [2],
|
|
1665
1649
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -1668,6 +1652,7 @@ export default {
|
|
|
1668
1652
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
1669
1653
|
],
|
|
1670
1654
|
'eslint/constructor-super': [2],
|
|
1655
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
1671
1656
|
'eslint/for-direction': [2],
|
|
1672
1657
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
1673
1658
|
'import/default': [2],
|
|
@@ -1679,20 +1664,7 @@ export default {
|
|
|
1679
1664
|
'import/no-named-as-default': [1],
|
|
1680
1665
|
'import/no-named-as-default-member': [1],
|
|
1681
1666
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
1682
|
-
'
|
|
1683
|
-
2,
|
|
1684
|
-
{
|
|
1685
|
-
'newlines-between': 'always',
|
|
1686
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
1687
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
1688
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
1689
|
-
distinctGroup: true,
|
|
1690
|
-
sortTypesGroup: false,
|
|
1691
|
-
named: false,
|
|
1692
|
-
warnOnUnassignedImports: false,
|
|
1693
|
-
},
|
|
1694
|
-
],
|
|
1695
|
-
'eslint-js/newline-before-return': [2],
|
|
1667
|
+
'eslint/max-depth': [1, 4],
|
|
1696
1668
|
'eslint/no-async-promise-executor': [2],
|
|
1697
1669
|
'eslint/no-case-declarations': [2],
|
|
1698
1670
|
'eslint/no-class-assign': [2],
|
|
@@ -1710,6 +1682,7 @@ export default {
|
|
|
1710
1682
|
'eslint/no-dupe-else-if': [2],
|
|
1711
1683
|
'eslint/no-dupe-keys': [2],
|
|
1712
1684
|
'eslint/no-duplicate-case': [2],
|
|
1685
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
1713
1686
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
1714
1687
|
'eslint/no-empty-character-class': [2],
|
|
1715
1688
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -1773,6 +1746,7 @@ export default {
|
|
|
1773
1746
|
'eslint/require-yield': [2],
|
|
1774
1747
|
'sonarjs/assertions-in-test-cases': [2],
|
|
1775
1748
|
'sonarjs/async-test-assertions': [2],
|
|
1749
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
1776
1750
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
1777
1751
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
1778
1752
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -1835,14 +1809,17 @@ export default {
|
|
|
1835
1809
|
'sonarjs/no-clear-text-protocols': [2],
|
|
1836
1810
|
'sonarjs/no-code-after-done': [2],
|
|
1837
1811
|
'sonarjs/no-dead-store': [2],
|
|
1812
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
1838
1813
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
1839
1814
|
'sonarjs/no-default-utility-imports': [2],
|
|
1840
1815
|
'sonarjs/no-delete-var': [2],
|
|
1841
1816
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
1817
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
1842
1818
|
'sonarjs/no-duplicate-test-title': [2],
|
|
1843
1819
|
'sonarjs/no-duplicated-branches': [2],
|
|
1844
1820
|
'sonarjs/no-element-overwrite': [2],
|
|
1845
1821
|
'sonarjs/no-empty-collection': [2],
|
|
1822
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
1846
1823
|
'sonarjs/no-empty-test-file': [2],
|
|
1847
1824
|
'sonarjs/no-empty-test-title': [2],
|
|
1848
1825
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -1875,10 +1852,10 @@ export default {
|
|
|
1875
1852
|
'sonarjs/no-labels': [2],
|
|
1876
1853
|
'sonarjs/no-literal-call': [2],
|
|
1877
1854
|
'sonarjs/no-mime-sniff': [2],
|
|
1878
|
-
'sonarjs/no-
|
|
1855
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
1879
1856
|
'sonarjs/no-nested-assignment': [2],
|
|
1880
1857
|
'sonarjs/no-nested-conditional': [2],
|
|
1881
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
1858
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
1882
1859
|
'sonarjs/no-nested-template-literals': [2],
|
|
1883
1860
|
'sonarjs/no-os-command-from-path': [2],
|
|
1884
1861
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -1902,12 +1879,17 @@ export default {
|
|
|
1902
1879
|
'sonarjs/no-useless-catch': [2],
|
|
1903
1880
|
'sonarjs/no-useless-increment': [2],
|
|
1904
1881
|
'sonarjs/no-useless-react-setstate': [2],
|
|
1882
|
+
'sonarjs/no-vue-class-component': [2],
|
|
1883
|
+
'sonarjs/no-vue-mixins': [2],
|
|
1905
1884
|
'sonarjs/no-weak-cipher': [2],
|
|
1906
1885
|
'sonarjs/no-weak-keys': [2],
|
|
1907
1886
|
'sonarjs/non-existent-operator': [2],
|
|
1908
1887
|
'sonarjs/object-alt-content': [2],
|
|
1909
1888
|
'sonarjs/parameterized-tests': [2],
|
|
1889
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
1910
1890
|
'sonarjs/prefer-default-last': [2],
|
|
1891
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
1892
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
1911
1893
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
1912
1894
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
1913
1895
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -1930,12 +1912,15 @@ export default {
|
|
|
1930
1912
|
'sonarjs/table-header': [2],
|
|
1931
1913
|
'sonarjs/table-header-reference': [2],
|
|
1932
1914
|
'sonarjs/test-check-exception': [2],
|
|
1915
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
1916
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
1933
1917
|
'sonarjs/todo-tag': [1],
|
|
1934
1918
|
'sonarjs/unverified-certificate': [2],
|
|
1935
1919
|
'sonarjs/unverified-hostname': [2],
|
|
1936
1920
|
'sonarjs/updated-const-var': [2],
|
|
1937
1921
|
'sonarjs/updated-loop-counter': [2],
|
|
1938
1922
|
'sonarjs/use-type-alias': [2],
|
|
1923
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
1939
1924
|
'sonarjs/weak-ssl': [2],
|
|
1940
1925
|
'sonarjs/x-powered-by': [2],
|
|
1941
1926
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -1983,7 +1968,6 @@ export default {
|
|
|
1983
1968
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
1984
1969
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
1985
1970
|
'unicorn/consistent-date-clone': [2],
|
|
1986
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
1987
1971
|
'unicorn/consistent-empty-array-spread': [2],
|
|
1988
1972
|
'unicorn/consistent-existence-index-check': [2],
|
|
1989
1973
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -2018,22 +2002,6 @@ export default {
|
|
|
2018
2002
|
],
|
|
2019
2003
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
2020
2004
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
2021
|
-
'unicorn-js/name-replacements': [
|
|
2022
|
-
2,
|
|
2023
|
-
{
|
|
2024
|
-
replacements: {
|
|
2025
|
-
dev: false,
|
|
2026
|
-
prod: false,
|
|
2027
|
-
props: false,
|
|
2028
|
-
ref: false,
|
|
2029
|
-
refs: false,
|
|
2030
|
-
args: false,
|
|
2031
|
-
params: false,
|
|
2032
|
-
utils: false,
|
|
2033
|
-
env: false,
|
|
2034
|
-
},
|
|
2035
|
-
},
|
|
2036
|
-
],
|
|
2037
2005
|
'unicorn/new-for-builtins': [2],
|
|
2038
2006
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
2039
2007
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -2142,7 +2110,6 @@ export default {
|
|
|
2142
2110
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
2143
2111
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
2144
2112
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
2145
|
-
'unicorn-js/no-unused-properties': [2],
|
|
2146
2113
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
2147
2114
|
'unicorn-js/no-useless-coercion': [2],
|
|
2148
2115
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -2397,7 +2364,7 @@ export default {
|
|
|
2397
2364
|
WeakSet: 'readonly',
|
|
2398
2365
|
},
|
|
2399
2366
|
},
|
|
2400
|
-
'
|
|
2367
|
+
'1dbc46e34c4a1241': {
|
|
2401
2368
|
rules: {
|
|
2402
2369
|
'stylistic-js/lines-between-class-members': [
|
|
2403
2370
|
2,
|
|
@@ -2417,6 +2384,7 @@ export default {
|
|
|
2417
2384
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
2418
2385
|
'typescript/adjacent-overload-signatures': [2],
|
|
2419
2386
|
'typescript-js/array-type': [2],
|
|
2387
|
+
'typescript/await-thenable': 'off',
|
|
2420
2388
|
'typescript/ban-ts-comment': [2],
|
|
2421
2389
|
'typescript/ban-tslint-comment': [2],
|
|
2422
2390
|
'typescript/class-literal-property-style': [2],
|
|
@@ -2432,14 +2400,18 @@ export default {
|
|
|
2432
2400
|
'typescript/no-empty-object-type': [2],
|
|
2433
2401
|
'typescript/no-explicit-any': [2],
|
|
2434
2402
|
'typescript/no-extra-non-null-assertion': [2],
|
|
2403
|
+
'typescript/no-floating-promises': 'off',
|
|
2435
2404
|
'typescript/no-inferrable-types': [2],
|
|
2436
2405
|
'typescript/no-misused-new': [2],
|
|
2406
|
+
'typescript/no-misused-promises': 'off',
|
|
2437
2407
|
'typescript/no-namespace': [2],
|
|
2438
2408
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
2439
2409
|
'typescript/no-require-imports': [2],
|
|
2440
2410
|
'eslint/no-shadow': 'off',
|
|
2441
2411
|
'typescript/no-this-alias': [2],
|
|
2412
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
2442
2413
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
2414
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
2443
2415
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
2444
2416
|
'typescript/no-unsafe-function-type': [2],
|
|
2445
2417
|
'eslint/no-unused-expressions': [
|
|
@@ -2452,6 +2424,7 @@ export default {
|
|
|
2452
2424
|
'typescript/prefer-for-of': [2],
|
|
2453
2425
|
'typescript/prefer-function-type': [2],
|
|
2454
2426
|
'typescript/prefer-namespace-keyword': [2],
|
|
2427
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
2455
2428
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
2456
2429
|
'typescript/triple-slash-reference': [2],
|
|
2457
2430
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -2460,6 +2433,7 @@ export default {
|
|
|
2460
2433
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
2461
2434
|
],
|
|
2462
2435
|
'eslint/constructor-super': [2],
|
|
2436
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
2463
2437
|
'eslint/for-direction': [2],
|
|
2464
2438
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
2465
2439
|
'import/default': [2],
|
|
@@ -2471,20 +2445,7 @@ export default {
|
|
|
2471
2445
|
'import/no-named-as-default': [1],
|
|
2472
2446
|
'import/no-named-as-default-member': [1],
|
|
2473
2447
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
2474
|
-
'
|
|
2475
|
-
2,
|
|
2476
|
-
{
|
|
2477
|
-
'newlines-between': 'always',
|
|
2478
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
2479
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
2480
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
2481
|
-
distinctGroup: true,
|
|
2482
|
-
sortTypesGroup: false,
|
|
2483
|
-
named: false,
|
|
2484
|
-
warnOnUnassignedImports: false,
|
|
2485
|
-
},
|
|
2486
|
-
],
|
|
2487
|
-
'eslint-js/newline-before-return': [2],
|
|
2448
|
+
'eslint/max-depth': [1, 4],
|
|
2488
2449
|
'eslint/no-async-promise-executor': [2],
|
|
2489
2450
|
'eslint/no-case-declarations': [2],
|
|
2490
2451
|
'eslint/no-class-assign': [2],
|
|
@@ -2502,6 +2463,7 @@ export default {
|
|
|
2502
2463
|
'eslint/no-dupe-else-if': [2],
|
|
2503
2464
|
'eslint/no-dupe-keys': [2],
|
|
2504
2465
|
'eslint/no-duplicate-case': [2],
|
|
2466
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
2505
2467
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
2506
2468
|
'eslint/no-empty-character-class': [2],
|
|
2507
2469
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -2565,6 +2527,7 @@ export default {
|
|
|
2565
2527
|
'eslint/require-yield': [2],
|
|
2566
2528
|
'sonarjs/assertions-in-test-cases': [2],
|
|
2567
2529
|
'sonarjs/async-test-assertions': [2],
|
|
2530
|
+
'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
|
|
2568
2531
|
'sonarjs/aws-apigateway-public-api': [2],
|
|
2569
2532
|
'sonarjs/aws-ec2-rds-dms-public': [2],
|
|
2570
2533
|
'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
|
|
@@ -2627,14 +2590,17 @@ export default {
|
|
|
2627
2590
|
'sonarjs/no-clear-text-protocols': [2],
|
|
2628
2591
|
'sonarjs/no-code-after-done': [2],
|
|
2629
2592
|
'sonarjs/no-dead-store': [2],
|
|
2593
|
+
'sonarjs/no-debounce-throttle-in-render': [2],
|
|
2630
2594
|
'sonarjs/no-debug-commands-in-ui-tests': [2],
|
|
2631
2595
|
'sonarjs/no-default-utility-imports': [2],
|
|
2632
2596
|
'sonarjs/no-delete-var': [2],
|
|
2633
2597
|
'sonarjs/no-duplicate-in-composite': [2],
|
|
2598
|
+
'sonarjs/no-duplicate-parameterized-test-case': [2],
|
|
2634
2599
|
'sonarjs/no-duplicate-test-title': [2],
|
|
2635
2600
|
'sonarjs/no-duplicated-branches': [2],
|
|
2636
2601
|
'sonarjs/no-element-overwrite': [2],
|
|
2637
2602
|
'sonarjs/no-empty-collection': [2],
|
|
2603
|
+
'sonarjs/no-empty-parameterized-test-dataset': [2],
|
|
2638
2604
|
'sonarjs/no-empty-test-file': [2],
|
|
2639
2605
|
'sonarjs/no-empty-test-title': [2],
|
|
2640
2606
|
'sonarjs/no-equals-in-for-termination': [2],
|
|
@@ -2667,10 +2633,10 @@ export default {
|
|
|
2667
2633
|
'sonarjs/no-labels': [2],
|
|
2668
2634
|
'sonarjs/no-literal-call': [2],
|
|
2669
2635
|
'sonarjs/no-mime-sniff': [2],
|
|
2670
|
-
'sonarjs/no-
|
|
2636
|
+
'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
|
|
2671
2637
|
'sonarjs/no-nested-assignment': [2],
|
|
2672
2638
|
'sonarjs/no-nested-conditional': [2],
|
|
2673
|
-
'sonarjs/no-nested-functions': [2, { threshold:
|
|
2639
|
+
'sonarjs/no-nested-functions': [2, { threshold: 5 }],
|
|
2674
2640
|
'sonarjs/no-nested-template-literals': [2],
|
|
2675
2641
|
'sonarjs/no-os-command-from-path': [2],
|
|
2676
2642
|
'sonarjs/no-parameter-reassignment': [2],
|
|
@@ -2694,12 +2660,17 @@ export default {
|
|
|
2694
2660
|
'sonarjs/no-useless-catch': [2],
|
|
2695
2661
|
'sonarjs/no-useless-increment': [2],
|
|
2696
2662
|
'sonarjs/no-useless-react-setstate': [2],
|
|
2663
|
+
'sonarjs/no-vue-class-component': [2],
|
|
2664
|
+
'sonarjs/no-vue-mixins': [2],
|
|
2697
2665
|
'sonarjs/no-weak-cipher': [2],
|
|
2698
2666
|
'sonarjs/no-weak-keys': [2],
|
|
2699
2667
|
'sonarjs/non-existent-operator': [2],
|
|
2700
2668
|
'sonarjs/object-alt-content': [2],
|
|
2701
2669
|
'sonarjs/parameterized-tests': [2],
|
|
2670
|
+
'sonarjs/prefer-cypress-should': [2],
|
|
2702
2671
|
'sonarjs/prefer-default-last': [2],
|
|
2672
|
+
'sonarjs/prefer-native-axios-alternative': [2],
|
|
2673
|
+
'sonarjs/prefer-native-jquery-alternative': [2],
|
|
2703
2674
|
'sonarjs/prefer-native-lodash-alternative': [2],
|
|
2704
2675
|
'sonarjs/prefer-promise-shorthand': [2],
|
|
2705
2676
|
'typescript/prefer-regexp-exec': 'off',
|
|
@@ -2722,12 +2693,15 @@ export default {
|
|
|
2722
2693
|
'sonarjs/table-header': [2],
|
|
2723
2694
|
'sonarjs/table-header-reference': [2],
|
|
2724
2695
|
'sonarjs/test-check-exception': [2],
|
|
2696
|
+
'sonarjs/testing-library-prefer-query-by-disappearance': [2],
|
|
2697
|
+
'sonarjs/testing-library-query-assertion': [2],
|
|
2725
2698
|
'sonarjs/todo-tag': [1],
|
|
2726
2699
|
'sonarjs/unverified-certificate': [2],
|
|
2727
2700
|
'sonarjs/unverified-hostname': [2],
|
|
2728
2701
|
'sonarjs/updated-const-var': [2],
|
|
2729
2702
|
'sonarjs/updated-loop-counter': [2],
|
|
2730
2703
|
'sonarjs/use-type-alias': [2],
|
|
2704
|
+
'sonarjs/vitest-mock-at-module-scope': [2],
|
|
2731
2705
|
'sonarjs/weak-ssl': [2],
|
|
2732
2706
|
'sonarjs/x-powered-by': [2],
|
|
2733
2707
|
'sonarjs/xml-parser-xxe': [2],
|
|
@@ -2775,7 +2749,6 @@ export default {
|
|
|
2775
2749
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
2776
2750
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
2777
2751
|
'unicorn/consistent-date-clone': [2],
|
|
2778
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
2779
2752
|
'unicorn/consistent-empty-array-spread': [2],
|
|
2780
2753
|
'unicorn/consistent-existence-index-check': [2],
|
|
2781
2754
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -2810,22 +2783,6 @@ export default {
|
|
|
2810
2783
|
],
|
|
2811
2784
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
2812
2785
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
2813
|
-
'unicorn-js/name-replacements': [
|
|
2814
|
-
2,
|
|
2815
|
-
{
|
|
2816
|
-
replacements: {
|
|
2817
|
-
dev: false,
|
|
2818
|
-
prod: false,
|
|
2819
|
-
props: false,
|
|
2820
|
-
ref: false,
|
|
2821
|
-
refs: false,
|
|
2822
|
-
args: false,
|
|
2823
|
-
params: false,
|
|
2824
|
-
utils: false,
|
|
2825
|
-
env: false,
|
|
2826
|
-
},
|
|
2827
|
-
},
|
|
2828
|
-
],
|
|
2829
2786
|
'unicorn/new-for-builtins': [2],
|
|
2830
2787
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
2831
2788
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -2934,7 +2891,6 @@ export default {
|
|
|
2934
2891
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
2935
2892
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
2936
2893
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
2937
|
-
'unicorn-js/no-unused-properties': [2],
|
|
2938
2894
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
2939
2895
|
'unicorn-js/no-useless-coercion': [2],
|
|
2940
2896
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -3191,16 +3147,16 @@ export default {
|
|
|
3191
3147
|
},
|
|
3192
3148
|
},
|
|
3193
3149
|
overrides: [
|
|
3194
|
-
{ files: ['**/*.js'], profile: '
|
|
3195
|
-
{ files: ['**/*.ts'], profile: '
|
|
3196
|
-
{ files: ['**/*.cjs'], profile: '
|
|
3197
|
-
{ files: ['**/*.cts'], profile: '
|
|
3198
|
-
{ files: ['**/*.jsx', '**/*.mjs'], profile: '
|
|
3199
|
-
{ files: ['**/*.mts', '**/*.tsx'], profile: '
|
|
3200
|
-
{ files: ['**/*.vue'], profile: '
|
|
3201
|
-
{ files: ['**/*.d.ts'], profile: '
|
|
3202
|
-
{ files: ['**/*.svelte'], profile: '
|
|
3203
|
-
{ files: ['**/*.svelte.js'], profile: '
|
|
3204
|
-
{ files: ['**/*.svelte.ts'], profile: '
|
|
3150
|
+
{ files: ['**/*.js'], profile: '4bd06b5dab6f014b' },
|
|
3151
|
+
{ files: ['**/*.ts'], profile: '73801d264792d2f0' },
|
|
3152
|
+
{ files: ['**/*.cjs'], profile: '4bd06b5dab6f014b' },
|
|
3153
|
+
{ files: ['**/*.cts'], profile: '73801d264792d2f0' },
|
|
3154
|
+
{ files: ['**/*.jsx', '**/*.mjs'], profile: '4bd06b5dab6f014b' },
|
|
3155
|
+
{ files: ['**/*.mts', '**/*.tsx'], profile: '73801d264792d2f0' },
|
|
3156
|
+
{ files: ['**/*.vue'], profile: '7e18c0dc69bd33e0' },
|
|
3157
|
+
{ files: ['**/*.d.ts'], profile: '73801d264792d2f0' },
|
|
3158
|
+
{ files: ['**/*.svelte'], profile: '1dbc46e34c4a1241' },
|
|
3159
|
+
{ files: ['**/*.svelte.js'], profile: '4bd06b5dab6f014b' },
|
|
3160
|
+
{ files: ['**/*.svelte.ts'], profile: '73801d264792d2f0' },
|
|
3205
3161
|
],
|
|
3206
3162
|
}
|