@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.
Files changed (45) hide show
  1. package/README.md +65 -31
  2. package/data/linter-config-inventory.json +294 -128
  3. package/data/oxlint-config-inventory.json +787 -786
  4. package/data/oxlint-rule-map.json +4709 -1805
  5. package/data/oxlint-source-inventory.json +10529 -8546
  6. package/docs/OXLINT_RULE_MAPPING.md +192 -87
  7. package/docs/RULE_MAPPING.md +2 -2
  8. package/package.json +110 -19
  9. package/scripts/README.md +8 -5
  10. package/scripts/init-angular-ox.sh +4 -0
  11. package/scripts/init-nuxt-ox.sh +4 -0
  12. package/scripts/init-vue-ox.sh +4 -0
  13. package/scripts/linter-init-core.mjs +50 -15
  14. package/scripts/linter-init.mjs +4 -2
  15. package/src/eslint/configs/config.import.js +1 -1
  16. package/src/eslint/configs/config.react.js +17 -24
  17. package/src/eslint/configs/import-plugin.js +48 -0
  18. package/src/eslint/configs/svelte-stack.js +4 -11
  19. package/src/eslint/eslint.config.angular-ox.js +26 -0
  20. package/src/eslint/eslint.config.astro-ox.js +3 -0
  21. package/src/eslint/eslint.config.nuxt-ox.js +4 -0
  22. package/src/eslint/eslint.config.svelte-ox.js +4 -0
  23. package/src/eslint/eslint.config.vue-ox.js +17 -0
  24. package/src/eslint/ox-supplement.d.ts +39 -0
  25. package/src/oxfmt/index.d.ts +24 -0
  26. package/src/oxfmt/oxfmt.config.angular.js +3 -0
  27. package/src/oxfmt/oxfmt.config.astro.js +3 -0
  28. package/src/oxfmt/oxfmt.config.svelte.js +3 -0
  29. package/src/oxlint/configs/config.astro.js +89 -43
  30. package/src/oxlint/configs/config.common.js +71 -23
  31. package/src/oxlint/configs/config.next.js +329 -168
  32. package/src/oxlint/configs/config.react.js +329 -168
  33. package/src/oxlint/configs/config.solid.js +103 -31
  34. package/src/oxlint/configs/config.svelte.js +85 -62
  35. package/src/oxlint/create-config.js +1 -1
  36. package/src/oxlint/framework-rules.js +79 -0
  37. package/src/oxlint/index.d.ts +24 -0
  38. package/src/oxlint/oxlint.config.angular.js +14 -0
  39. package/src/oxlint/oxlint.config.nuxt.js +24 -0
  40. package/src/oxlint/oxlint.config.vue.js +8 -0
  41. package/src/oxlint/plugins/angular.js +1 -0
  42. package/src/oxlint/plugins/import-x.js +1 -1
  43. package/src/oxlint/plugins/nuxt.js +1 -0
  44. package/src/oxlint/plugins/react.js +1 -1
  45. package/src/oxlint/stacks.js +27 -8
@@ -0,0 +1,4 @@
1
+ import vue from './eslint.config.vue-ox.js'
2
+
3
+ // Nuxt's JS rules run in Oxlint; Vue's parser retains template checks here.
4
+ export default [...vue, { ignores: ['**/.nuxt/**', '**/.output/**'] }]
@@ -0,0 +1,4 @@
1
+ import svelte from './configs/svelte-stack.js'
2
+
3
+ // Framework/template checks supplement Oxlint's extracted-script analysis.
4
+ export default [...svelte, { ignores: ['**/node_modules/**', '**/.svelte-kit/**', '**/build/**'] }]
@@ -0,0 +1,17 @@
1
+ import prettier from 'eslint-config-prettier'
2
+ import vue from 'eslint-plugin-vue'
3
+ import { parser } from 'typescript-eslint'
4
+
5
+ import { vueRules } from '../oxlint/framework-rules.js'
6
+
7
+ export default [
8
+ { ignores: ['**/node_modules/**', '**/dist/**'] },
9
+ ...vue.configs['flat/recommended'],
10
+ {
11
+ files: ['**/*.vue'],
12
+ languageOptions: { parserOptions: { parser } },
13
+ },
14
+ // Oxfmt owns formatting. Keep Vue's framework checks, including template bindings.
15
+ prettier,
16
+ { files: ['**/*.vue'], rules: Object.fromEntries(Object.keys(vueRules).map((name) => [name, 'off'])) },
17
+ ]
@@ -0,0 +1,39 @@
1
+ declare module '@st1ggy/linter-config/eslint-svelte-ox' {
2
+ import type { Linter } from 'eslint'
3
+
4
+ const config: Linter.Config[]
5
+
6
+ export default config
7
+ }
8
+
9
+ declare module '@st1ggy/linter-config/eslint-astro-ox' {
10
+ import type { Linter } from 'eslint'
11
+
12
+ const config: Linter.Config[]
13
+
14
+ export default config
15
+ }
16
+
17
+ declare module '@st1ggy/linter-config/eslint-angular-ox' {
18
+ import type { Linter } from 'eslint'
19
+
20
+ const config: Linter.Config[]
21
+
22
+ export default config
23
+ }
24
+
25
+ declare module '@st1ggy/linter-config/eslint-vue-ox' {
26
+ import type { Linter } from 'eslint'
27
+
28
+ const config: Linter.Config[]
29
+
30
+ export default config
31
+ }
32
+
33
+ declare module '@st1ggy/linter-config/eslint-nuxt-ox' {
34
+ import type { Linter } from 'eslint'
35
+
36
+ const config: Linter.Config[]
37
+
38
+ export default config
39
+ }
@@ -1,4 +1,28 @@
1
1
  // Kept separate from the legacy declarations to make the formatter an optional peer.
2
+ declare module '@st1ggy/linter-config/oxfmt-svelte' {
3
+ import type { OxfmtConfig } from 'oxfmt'
4
+
5
+ const config: OxfmtConfig
6
+
7
+ export default config
8
+ }
9
+
10
+ declare module '@st1ggy/linter-config/oxfmt-astro' {
11
+ import type { OxfmtConfig } from 'oxfmt'
12
+
13
+ const config: OxfmtConfig
14
+
15
+ export default config
16
+ }
17
+
18
+ declare module '@st1ggy/linter-config/oxfmt-angular' {
19
+ import type { OxfmtConfig } from 'oxfmt'
20
+
21
+ const config: OxfmtConfig
22
+
23
+ export default config
24
+ }
25
+
2
26
  declare module '@st1ggy/linter-config/oxfmt-common' {
3
27
  import type { OxfmtConfig } from 'oxfmt'
4
28
 
@@ -0,0 +1,3 @@
1
+ import common from './oxfmt.config.common.js'
2
+
3
+ export default { ...common, associations: [{ files: ['**/*.html'], language: 'angular-html' }] }
@@ -0,0 +1,3 @@
1
+ import common from './oxfmt.config.common.js'
2
+
3
+ export default { ...common, astro: true }
@@ -0,0 +1,3 @@
1
+ import common from './oxfmt.config.common.js'
2
+
3
+ export default { ...common, svelte: true }
@@ -1,18 +1,9 @@
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: 'prettier',
4
+ formatter: 'oxfmt',
5
5
  plugins: ['eslint', 'import', 'typescript', 'unicorn'],
6
- jsPlugins: [
7
- 'astro',
8
- 'eslint-js',
9
- 'import-x-js',
10
- 'prettier',
11
- 'sonarjs',
12
- 'stylistic-js',
13
- 'typescript-js',
14
- 'unicorn-js',
15
- ],
6
+ jsPlugins: ['astro', 'eslint-js', 'import-x-js', 'sonarjs', 'stylistic-js', 'typescript-js', 'unicorn-js'],
16
7
  settings: {
17
8
  'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
18
9
  'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
@@ -40,7 +31,7 @@ export default {
40
31
  ],
41
32
  },
42
33
  profiles: {
43
- '2b199fa30e3c3ae5': {
34
+ '4ad48ea609117ca3': {
44
35
  rules: {
45
36
  'stylistic-js/lines-between-class-members': [
46
37
  2,
@@ -208,10 +199,10 @@ export default {
208
199
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
209
200
  'eslint/prefer-template': [2],
210
201
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
211
- 'prettier/prettier': [2],
212
202
  'eslint/require-yield': [2],
213
203
  'sonarjs/assertions-in-test-cases': [2],
214
204
  'sonarjs/async-test-assertions': [2],
205
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
215
206
  'sonarjs/aws-apigateway-public-api': [2],
216
207
  'sonarjs/aws-ec2-rds-dms-public': [2],
217
208
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -274,14 +265,17 @@ export default {
274
265
  'sonarjs/no-clear-text-protocols': [2],
275
266
  'sonarjs/no-code-after-done': [2],
276
267
  'sonarjs/no-dead-store': [2],
268
+ 'sonarjs/no-debounce-throttle-in-render': [2],
277
269
  'sonarjs/no-debug-commands-in-ui-tests': [2],
278
270
  'sonarjs/no-default-utility-imports': [2],
279
271
  'sonarjs/no-delete-var': [2],
280
272
  'sonarjs/no-duplicate-in-composite': [2],
273
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
281
274
  'sonarjs/no-duplicate-test-title': [2],
282
275
  'sonarjs/no-duplicated-branches': [2],
283
276
  'sonarjs/no-element-overwrite': [2],
284
277
  'sonarjs/no-empty-collection': [2],
278
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
285
279
  'sonarjs/no-empty-test-file': [2],
286
280
  'sonarjs/no-empty-test-title': [2],
287
281
  'sonarjs/no-equals-in-for-termination': [2],
@@ -314,10 +308,10 @@ export default {
314
308
  'sonarjs/no-labels': [2],
315
309
  'sonarjs/no-literal-call': [2],
316
310
  'sonarjs/no-mime-sniff': [2],
317
- 'sonarjs/no-mixed-completion-style': [2],
311
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
318
312
  'sonarjs/no-nested-assignment': [2],
319
313
  'sonarjs/no-nested-conditional': [2],
320
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
314
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
321
315
  'sonarjs/no-nested-template-literals': [2],
322
316
  'sonarjs/no-os-command-from-path': [2],
323
317
  'sonarjs/no-parameter-reassignment': [2],
@@ -341,12 +335,17 @@ export default {
341
335
  'sonarjs/no-useless-catch': [2],
342
336
  'sonarjs/no-useless-increment': [2],
343
337
  'sonarjs/no-useless-react-setstate': [2],
338
+ 'sonarjs/no-vue-class-component': [2],
339
+ 'sonarjs/no-vue-mixins': [2],
344
340
  'sonarjs/no-weak-cipher': [2],
345
341
  'sonarjs/no-weak-keys': [2],
346
342
  'sonarjs/non-existent-operator': [2],
347
343
  'sonarjs/object-alt-content': [2],
348
344
  'sonarjs/parameterized-tests': [2],
345
+ 'sonarjs/prefer-cypress-should': [2],
349
346
  'sonarjs/prefer-default-last': [2],
347
+ 'sonarjs/prefer-native-axios-alternative': [2],
348
+ 'sonarjs/prefer-native-jquery-alternative': [2],
350
349
  'sonarjs/prefer-native-lodash-alternative': [2],
351
350
  'sonarjs/prefer-promise-shorthand': [2],
352
351
  'typescript/prefer-regexp-exec': [2],
@@ -369,12 +368,15 @@ export default {
369
368
  'sonarjs/table-header': [2],
370
369
  'sonarjs/table-header-reference': [2],
371
370
  'sonarjs/test-check-exception': [2],
371
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
372
+ 'sonarjs/testing-library-query-assertion': [2],
372
373
  'sonarjs/todo-tag': [1],
373
374
  'sonarjs/unverified-certificate': [2],
374
375
  'sonarjs/unverified-hostname': [2],
375
376
  'sonarjs/updated-const-var': [2],
376
377
  'sonarjs/updated-loop-counter': [2],
377
378
  'sonarjs/use-type-alias': [2],
379
+ 'sonarjs/vitest-mock-at-module-scope': [2],
378
380
  'sonarjs/weak-ssl': [2],
379
381
  'sonarjs/x-powered-by': [2],
380
382
  'sonarjs/xml-parser-xxe': [2],
@@ -844,7 +846,7 @@ export default {
844
846
  WeakSet: 'readonly',
845
847
  },
846
848
  },
847
- b84ced6e6cc1a835: {
849
+ '4af289385c265c7b': {
848
850
  rules: {
849
851
  'stylistic-js/lines-between-class-members': [
850
852
  2,
@@ -1012,10 +1014,10 @@ export default {
1012
1014
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
1013
1015
  'eslint/prefer-template': [2],
1014
1016
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
1015
- 'prettier/prettier': [2],
1016
1017
  'eslint/require-yield': [2],
1017
1018
  'sonarjs/assertions-in-test-cases': [2],
1018
1019
  'sonarjs/async-test-assertions': [2],
1020
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
1019
1021
  'sonarjs/aws-apigateway-public-api': [2],
1020
1022
  'sonarjs/aws-ec2-rds-dms-public': [2],
1021
1023
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -1078,14 +1080,17 @@ export default {
1078
1080
  'sonarjs/no-clear-text-protocols': [2],
1079
1081
  'sonarjs/no-code-after-done': [2],
1080
1082
  'sonarjs/no-dead-store': [2],
1083
+ 'sonarjs/no-debounce-throttle-in-render': [2],
1081
1084
  'sonarjs/no-debug-commands-in-ui-tests': [2],
1082
1085
  'sonarjs/no-default-utility-imports': [2],
1083
1086
  'sonarjs/no-delete-var': [2],
1084
1087
  'sonarjs/no-duplicate-in-composite': [2],
1088
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
1085
1089
  'sonarjs/no-duplicate-test-title': [2],
1086
1090
  'sonarjs/no-duplicated-branches': [2],
1087
1091
  'sonarjs/no-element-overwrite': [2],
1088
1092
  'sonarjs/no-empty-collection': [2],
1093
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
1089
1094
  'sonarjs/no-empty-test-file': [2],
1090
1095
  'sonarjs/no-empty-test-title': [2],
1091
1096
  'sonarjs/no-equals-in-for-termination': [2],
@@ -1118,10 +1123,10 @@ export default {
1118
1123
  'sonarjs/no-labels': [2],
1119
1124
  'sonarjs/no-literal-call': [2],
1120
1125
  'sonarjs/no-mime-sniff': [2],
1121
- 'sonarjs/no-mixed-completion-style': [2],
1126
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
1122
1127
  'sonarjs/no-nested-assignment': [2],
1123
1128
  'sonarjs/no-nested-conditional': [2],
1124
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
1129
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
1125
1130
  'sonarjs/no-nested-template-literals': [2],
1126
1131
  'sonarjs/no-os-command-from-path': [2],
1127
1132
  'sonarjs/no-parameter-reassignment': [2],
@@ -1145,12 +1150,17 @@ export default {
1145
1150
  'sonarjs/no-useless-catch': [2],
1146
1151
  'sonarjs/no-useless-increment': [2],
1147
1152
  'sonarjs/no-useless-react-setstate': [2],
1153
+ 'sonarjs/no-vue-class-component': [2],
1154
+ 'sonarjs/no-vue-mixins': [2],
1148
1155
  'sonarjs/no-weak-cipher': [2],
1149
1156
  'sonarjs/no-weak-keys': [2],
1150
1157
  'sonarjs/non-existent-operator': [2],
1151
1158
  'sonarjs/object-alt-content': [2],
1152
1159
  'sonarjs/parameterized-tests': [2],
1160
+ 'sonarjs/prefer-cypress-should': [2],
1153
1161
  'sonarjs/prefer-default-last': [2],
1162
+ 'sonarjs/prefer-native-axios-alternative': [2],
1163
+ 'sonarjs/prefer-native-jquery-alternative': [2],
1154
1164
  'sonarjs/prefer-native-lodash-alternative': [2],
1155
1165
  'sonarjs/prefer-promise-shorthand': [2],
1156
1166
  'typescript/prefer-regexp-exec': [2],
@@ -1173,12 +1183,15 @@ export default {
1173
1183
  'sonarjs/table-header': [2],
1174
1184
  'sonarjs/table-header-reference': [2],
1175
1185
  'sonarjs/test-check-exception': [2],
1186
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
1187
+ 'sonarjs/testing-library-query-assertion': [2],
1176
1188
  'sonarjs/todo-tag': [1],
1177
1189
  'sonarjs/unverified-certificate': [2],
1178
1190
  'sonarjs/unverified-hostname': [2],
1179
1191
  'sonarjs/updated-const-var': [2],
1180
1192
  'sonarjs/updated-loop-counter': [2],
1181
1193
  'sonarjs/use-type-alias': [2],
1194
+ 'sonarjs/vitest-mock-at-module-scope': [2],
1182
1195
  'sonarjs/weak-ssl': [2],
1183
1196
  'sonarjs/x-powered-by': [2],
1184
1197
  'sonarjs/xml-parser-xxe': [2],
@@ -1648,7 +1661,7 @@ export default {
1648
1661
  WeakSet: 'readonly',
1649
1662
  },
1650
1663
  },
1651
- ba84c14223af5975: {
1664
+ c3643399cf5a235a: {
1652
1665
  rules: {
1653
1666
  'stylistic-js/lines-between-class-members': [
1654
1667
  2,
@@ -1816,10 +1829,10 @@ export default {
1816
1829
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
1817
1830
  'eslint/prefer-template': [2],
1818
1831
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
1819
- 'prettier/prettier': [2],
1820
1832
  'eslint/require-yield': [2],
1821
1833
  'sonarjs/assertions-in-test-cases': [2],
1822
1834
  'sonarjs/async-test-assertions': [2],
1835
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
1823
1836
  'sonarjs/aws-apigateway-public-api': [2],
1824
1837
  'sonarjs/aws-ec2-rds-dms-public': [2],
1825
1838
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -1882,14 +1895,17 @@ export default {
1882
1895
  'sonarjs/no-clear-text-protocols': [2],
1883
1896
  'sonarjs/no-code-after-done': [2],
1884
1897
  'sonarjs/no-dead-store': [2],
1898
+ 'sonarjs/no-debounce-throttle-in-render': [2],
1885
1899
  'sonarjs/no-debug-commands-in-ui-tests': [2],
1886
1900
  'sonarjs/no-default-utility-imports': [2],
1887
1901
  'sonarjs/no-delete-var': [2],
1888
1902
  'sonarjs/no-duplicate-in-composite': [2],
1903
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
1889
1904
  'sonarjs/no-duplicate-test-title': [2],
1890
1905
  'sonarjs/no-duplicated-branches': [2],
1891
1906
  'sonarjs/no-element-overwrite': [2],
1892
1907
  'sonarjs/no-empty-collection': [2],
1908
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
1893
1909
  'sonarjs/no-empty-test-file': [2],
1894
1910
  'sonarjs/no-empty-test-title': [2],
1895
1911
  'sonarjs/no-equals-in-for-termination': [2],
@@ -1922,10 +1938,10 @@ export default {
1922
1938
  'sonarjs/no-labels': [2],
1923
1939
  'sonarjs/no-literal-call': [2],
1924
1940
  'sonarjs/no-mime-sniff': [2],
1925
- 'sonarjs/no-mixed-completion-style': [2],
1941
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
1926
1942
  'sonarjs/no-nested-assignment': [2],
1927
1943
  'sonarjs/no-nested-conditional': [2],
1928
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
1944
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
1929
1945
  'sonarjs/no-nested-template-literals': [2],
1930
1946
  'sonarjs/no-os-command-from-path': [2],
1931
1947
  'sonarjs/no-parameter-reassignment': [2],
@@ -1949,12 +1965,17 @@ export default {
1949
1965
  'sonarjs/no-useless-catch': [2],
1950
1966
  'sonarjs/no-useless-increment': [2],
1951
1967
  'sonarjs/no-useless-react-setstate': [2],
1968
+ 'sonarjs/no-vue-class-component': [2],
1969
+ 'sonarjs/no-vue-mixins': [2],
1952
1970
  'sonarjs/no-weak-cipher': [2],
1953
1971
  'sonarjs/no-weak-keys': [2],
1954
1972
  'sonarjs/non-existent-operator': [2],
1955
1973
  'sonarjs/object-alt-content': [2],
1956
1974
  'sonarjs/parameterized-tests': [2],
1975
+ 'sonarjs/prefer-cypress-should': [2],
1957
1976
  'sonarjs/prefer-default-last': [2],
1977
+ 'sonarjs/prefer-native-axios-alternative': [2],
1978
+ 'sonarjs/prefer-native-jquery-alternative': [2],
1958
1979
  'sonarjs/prefer-native-lodash-alternative': [2],
1959
1980
  'sonarjs/prefer-promise-shorthand': [2],
1960
1981
  'typescript/prefer-regexp-exec': 'off',
@@ -1977,12 +1998,15 @@ export default {
1977
1998
  'sonarjs/table-header': [2],
1978
1999
  'sonarjs/table-header-reference': [2],
1979
2000
  'sonarjs/test-check-exception': [2],
2001
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
2002
+ 'sonarjs/testing-library-query-assertion': [2],
1980
2003
  'sonarjs/todo-tag': [1],
1981
2004
  'sonarjs/unverified-certificate': [2],
1982
2005
  'sonarjs/unverified-hostname': [2],
1983
2006
  'sonarjs/updated-const-var': [2],
1984
2007
  'sonarjs/updated-loop-counter': [2],
1985
2008
  'sonarjs/use-type-alias': [2],
2009
+ 'sonarjs/vitest-mock-at-module-scope': [2],
1986
2010
  'sonarjs/weak-ssl': [2],
1987
2011
  'sonarjs/x-powered-by': [2],
1988
2012
  'sonarjs/xml-parser-xxe': [2],
@@ -2452,7 +2476,7 @@ export default {
2452
2476
  WeakSet: 'readonly',
2453
2477
  },
2454
2478
  },
2455
- '575cd58e6c1e26f0': {
2479
+ '5484b27c78fdd4d7': {
2456
2480
  rules: {
2457
2481
  'stylistic-js/lines-between-class-members': [
2458
2482
  2,
@@ -2579,10 +2603,10 @@ export default {
2579
2603
  'eslint/prefer-const': 'off',
2580
2604
  'eslint/prefer-template': 'off',
2581
2605
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
2582
- 'prettier/prettier': 'off',
2583
2606
  'eslint/require-yield': [2],
2584
2607
  'sonarjs/assertions-in-test-cases': [2],
2585
2608
  'sonarjs/async-test-assertions': [2],
2609
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
2586
2610
  'sonarjs/aws-apigateway-public-api': [2],
2587
2611
  'sonarjs/aws-ec2-rds-dms-public': [2],
2588
2612
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -2645,14 +2669,17 @@ export default {
2645
2669
  'sonarjs/no-clear-text-protocols': [2],
2646
2670
  'sonarjs/no-code-after-done': [2],
2647
2671
  'sonarjs/no-dead-store': [2],
2672
+ 'sonarjs/no-debounce-throttle-in-render': [2],
2648
2673
  'sonarjs/no-debug-commands-in-ui-tests': [2],
2649
2674
  'sonarjs/no-default-utility-imports': [2],
2650
2675
  'sonarjs/no-delete-var': [2],
2651
2676
  'sonarjs/no-duplicate-in-composite': [2],
2677
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
2652
2678
  'sonarjs/no-duplicate-test-title': [2],
2653
2679
  'sonarjs/no-duplicated-branches': [2],
2654
2680
  'sonarjs/no-element-overwrite': [2],
2655
2681
  'sonarjs/no-empty-collection': [2],
2682
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
2656
2683
  'sonarjs/no-empty-test-file': [2],
2657
2684
  'sonarjs/no-empty-test-title': [2],
2658
2685
  'sonarjs/no-equals-in-for-termination': [2],
@@ -2685,10 +2712,10 @@ export default {
2685
2712
  'sonarjs/no-labels': [2],
2686
2713
  'sonarjs/no-literal-call': [2],
2687
2714
  'sonarjs/no-mime-sniff': [2],
2688
- 'sonarjs/no-mixed-completion-style': [2],
2715
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
2689
2716
  'sonarjs/no-nested-assignment': [2],
2690
2717
  'sonarjs/no-nested-conditional': [2],
2691
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
2718
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
2692
2719
  'sonarjs/no-nested-template-literals': [2],
2693
2720
  'sonarjs/no-os-command-from-path': [2],
2694
2721
  'sonarjs/no-parameter-reassignment': [2],
@@ -2712,12 +2739,17 @@ export default {
2712
2739
  'sonarjs/no-useless-catch': [2],
2713
2740
  'sonarjs/no-useless-increment': [2],
2714
2741
  'sonarjs/no-useless-react-setstate': [2],
2742
+ 'sonarjs/no-vue-class-component': [2],
2743
+ 'sonarjs/no-vue-mixins': [2],
2715
2744
  'sonarjs/no-weak-cipher': [2],
2716
2745
  'sonarjs/no-weak-keys': [2],
2717
2746
  'sonarjs/non-existent-operator': [2],
2718
2747
  'sonarjs/object-alt-content': [2],
2719
2748
  'sonarjs/parameterized-tests': [2],
2749
+ 'sonarjs/prefer-cypress-should': [2],
2720
2750
  'sonarjs/prefer-default-last': [2],
2751
+ 'sonarjs/prefer-native-axios-alternative': [2],
2752
+ 'sonarjs/prefer-native-jquery-alternative': [2],
2721
2753
  'sonarjs/prefer-native-lodash-alternative': [2],
2722
2754
  'sonarjs/prefer-promise-shorthand': [2],
2723
2755
  'typescript/prefer-regexp-exec': 'off',
@@ -2740,12 +2772,15 @@ export default {
2740
2772
  'sonarjs/table-header': [2],
2741
2773
  'sonarjs/table-header-reference': [2],
2742
2774
  'sonarjs/test-check-exception': [2],
2775
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
2776
+ 'sonarjs/testing-library-query-assertion': [2],
2743
2777
  'sonarjs/todo-tag': [2],
2744
2778
  'sonarjs/unverified-certificate': [2],
2745
2779
  'sonarjs/unverified-hostname': [2],
2746
2780
  'sonarjs/updated-const-var': [2],
2747
2781
  'sonarjs/updated-loop-counter': [2],
2748
2782
  'sonarjs/use-type-alias': [2],
2783
+ 'sonarjs/vitest-mock-at-module-scope': [2],
2749
2784
  'sonarjs/weak-ssl': [2],
2750
2785
  'sonarjs/x-powered-by': [2],
2751
2786
  'sonarjs/xml-parser-xxe': [2],
@@ -3274,7 +3309,7 @@ export default {
3274
3309
  Fragment: 'readonly',
3275
3310
  },
3276
3311
  },
3277
- '857be039bae4dc05': {
3312
+ bfa611fe826bd0a5: {
3278
3313
  rules: {
3279
3314
  'stylistic-js/lines-between-class-members': [
3280
3315
  2,
@@ -3439,10 +3474,10 @@ export default {
3439
3474
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
3440
3475
  'eslint/prefer-template': [2],
3441
3476
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
3442
- 'prettier/prettier': 'off',
3443
3477
  'eslint/require-yield': [2],
3444
3478
  'sonarjs/assertions-in-test-cases': [2],
3445
3479
  'sonarjs/async-test-assertions': [2],
3480
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
3446
3481
  'sonarjs/aws-apigateway-public-api': [2],
3447
3482
  'sonarjs/aws-ec2-rds-dms-public': [2],
3448
3483
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -3505,14 +3540,17 @@ export default {
3505
3540
  'sonarjs/no-clear-text-protocols': [2],
3506
3541
  'sonarjs/no-code-after-done': [2],
3507
3542
  'sonarjs/no-dead-store': [2],
3543
+ 'sonarjs/no-debounce-throttle-in-render': [2],
3508
3544
  'sonarjs/no-debug-commands-in-ui-tests': [2],
3509
3545
  'sonarjs/no-default-utility-imports': [2],
3510
3546
  'sonarjs/no-delete-var': [2],
3511
3547
  'sonarjs/no-duplicate-in-composite': [2],
3548
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
3512
3549
  'sonarjs/no-duplicate-test-title': [2],
3513
3550
  'sonarjs/no-duplicated-branches': [2],
3514
3551
  'sonarjs/no-element-overwrite': [2],
3515
3552
  'sonarjs/no-empty-collection': [2],
3553
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
3516
3554
  'sonarjs/no-empty-test-file': [2],
3517
3555
  'sonarjs/no-empty-test-title': [2],
3518
3556
  'sonarjs/no-equals-in-for-termination': [2],
@@ -3545,10 +3583,10 @@ export default {
3545
3583
  'sonarjs/no-labels': [2],
3546
3584
  'sonarjs/no-literal-call': [2],
3547
3585
  'sonarjs/no-mime-sniff': [2],
3548
- 'sonarjs/no-mixed-completion-style': [2],
3586
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
3549
3587
  'sonarjs/no-nested-assignment': [2],
3550
3588
  'sonarjs/no-nested-conditional': [2],
3551
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
3589
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
3552
3590
  'sonarjs/no-nested-template-literals': [2],
3553
3591
  'sonarjs/no-os-command-from-path': [2],
3554
3592
  'sonarjs/no-parameter-reassignment': [2],
@@ -3572,12 +3610,17 @@ export default {
3572
3610
  'sonarjs/no-useless-catch': [2],
3573
3611
  'sonarjs/no-useless-increment': [2],
3574
3612
  'sonarjs/no-useless-react-setstate': [2],
3613
+ 'sonarjs/no-vue-class-component': [2],
3614
+ 'sonarjs/no-vue-mixins': [2],
3575
3615
  'sonarjs/no-weak-cipher': [2],
3576
3616
  'sonarjs/no-weak-keys': [2],
3577
3617
  'sonarjs/non-existent-operator': [2],
3578
3618
  'sonarjs/object-alt-content': [2],
3579
3619
  'sonarjs/parameterized-tests': [2],
3620
+ 'sonarjs/prefer-cypress-should': [2],
3580
3621
  'sonarjs/prefer-default-last': [2],
3622
+ 'sonarjs/prefer-native-axios-alternative': [2],
3623
+ 'sonarjs/prefer-native-jquery-alternative': [2],
3581
3624
  'sonarjs/prefer-native-lodash-alternative': [2],
3582
3625
  'sonarjs/prefer-promise-shorthand': [2],
3583
3626
  'typescript/prefer-regexp-exec': 'off',
@@ -3600,12 +3643,15 @@ export default {
3600
3643
  'sonarjs/table-header': [2],
3601
3644
  'sonarjs/table-header-reference': [2],
3602
3645
  'sonarjs/test-check-exception': [2],
3646
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
3647
+ 'sonarjs/testing-library-query-assertion': [2],
3603
3648
  'sonarjs/todo-tag': [1],
3604
3649
  'sonarjs/unverified-certificate': [2],
3605
3650
  'sonarjs/unverified-hostname': [2],
3606
3651
  'sonarjs/updated-const-var': [2],
3607
3652
  'sonarjs/updated-loop-counter': [2],
3608
3653
  'sonarjs/use-type-alias': [2],
3654
+ 'sonarjs/vitest-mock-at-module-scope': [2],
3609
3655
  'sonarjs/weak-ssl': [2],
3610
3656
  'sonarjs/x-powered-by': [2],
3611
3657
  'sonarjs/xml-parser-xxe': [2],
@@ -4077,17 +4123,17 @@ export default {
4077
4123
  },
4078
4124
  },
4079
4125
  overrides: [
4080
- { files: ['**/*.js'], profile: '2b199fa30e3c3ae5' },
4081
- { files: ['**/*.ts'], profile: 'b84ced6e6cc1a835' },
4082
- { files: ['**/*.cjs'], profile: '2b199fa30e3c3ae5' },
4083
- { files: ['**/*.cts'], profile: 'b84ced6e6cc1a835' },
4084
- { files: ['**/*.jsx', '**/*.mjs'], profile: '2b199fa30e3c3ae5' },
4085
- { files: ['**/*.mts', '**/*.tsx'], profile: 'b84ced6e6cc1a835' },
4086
- { files: ['**/*.vue'], profile: 'ba84c14223af5975' },
4087
- { files: ['**/*.d.ts'], profile: 'b84ced6e6cc1a835' },
4088
- { files: ['**/*.astro'], profile: '575cd58e6c1e26f0' },
4089
- { files: ['**/*.svelte'], profile: '857be039bae4dc05' },
4090
- { files: ['**/*.svelte.js'], profile: '2b199fa30e3c3ae5' },
4091
- { files: ['**/*.svelte.ts'], profile: 'b84ced6e6cc1a835' },
4126
+ { files: ['**/*.js'], profile: '4ad48ea609117ca3' },
4127
+ { files: ['**/*.ts'], profile: '4af289385c265c7b' },
4128
+ { files: ['**/*.cjs'], profile: '4ad48ea609117ca3' },
4129
+ { files: ['**/*.cts'], profile: '4af289385c265c7b' },
4130
+ { files: ['**/*.jsx', '**/*.mjs'], profile: '4ad48ea609117ca3' },
4131
+ { files: ['**/*.mts', '**/*.tsx'], profile: '4af289385c265c7b' },
4132
+ { files: ['**/*.vue'], profile: 'c3643399cf5a235a' },
4133
+ { files: ['**/*.d.ts'], profile: '4af289385c265c7b' },
4134
+ { files: ['**/*.astro'], profile: '5484b27c78fdd4d7' },
4135
+ { files: ['**/*.svelte'], profile: 'bfa611fe826bd0a5' },
4136
+ { files: ['**/*.svelte.js'], profile: '4ad48ea609117ca3' },
4137
+ { files: ['**/*.svelte.ts'], profile: '4af289385c265c7b' },
4092
4138
  ],
4093
4139
  }