@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.
Files changed (46) hide show
  1. package/README.md +101 -28
  2. package/data/linter-config-inventory.json +294 -128
  3. package/data/oxlint-config-inventory.json +913 -735
  4. package/data/oxlint-rule-map.json +4684 -1743
  5. package/data/oxlint-source-inventory.json +10529 -8546
  6. package/docs/OXLINT_RULE_MAPPING.md +197 -88
  7. package/docs/RULE_MAPPING.md +2 -2
  8. package/package.json +122 -18
  9. package/scripts/README.md +12 -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 +75 -20
  14. package/scripts/linter-init.mjs +5 -3
  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 +32 -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.common.js +16 -0
  29. package/src/oxfmt/oxfmt.config.svelte.js +3 -0
  30. package/src/oxlint/configs/config.astro.js +89 -42
  31. package/src/oxlint/configs/config.common.js +73 -28
  32. package/src/oxlint/configs/config.next.js +330 -173
  33. package/src/oxlint/configs/config.react.js +330 -173
  34. package/src/oxlint/configs/config.solid.js +105 -47
  35. package/src/oxlint/configs/config.svelte.js +85 -61
  36. package/src/oxlint/create-config.js +1 -1
  37. package/src/oxlint/framework-rules.js +79 -0
  38. package/src/oxlint/index.d.ts +24 -0
  39. package/src/oxlint/oxlint.config.angular.js +14 -0
  40. package/src/oxlint/oxlint.config.nuxt.js +24 -0
  41. package/src/oxlint/oxlint.config.vue.js +8 -0
  42. package/src/oxlint/plugins/angular.js +1 -0
  43. package/src/oxlint/plugins/import-x.js +1 -1
  44. package/src/oxlint/plugins/nuxt.js +1 -0
  45. package/src/oxlint/plugins/react.js +1 -1
  46. package/src/oxlint/stacks.js +30 -5
@@ -1,17 +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: 'oxfmt',
4
5
  plugins: ['eslint', 'import', 'typescript', 'unicorn'],
5
- jsPlugins: [
6
- 'eslint-js',
7
- 'import-x-js',
8
- 'prettier',
9
- 'sonarjs',
10
- 'stylistic-js',
11
- 'svelte',
12
- 'typescript-js',
13
- 'unicorn-js',
14
- ],
6
+ jsPlugins: ['eslint-js', 'import-x-js', 'sonarjs', 'stylistic-js', 'svelte', 'typescript-js', 'unicorn-js'],
15
7
  settings: {
16
8
  'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
17
9
  'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
@@ -32,19 +24,13 @@ export default {
32
24
  'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
33
25
  'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
34
26
  'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
35
- 'import-x/resolver': {
36
- typescript: true,
37
- node: true,
38
- 'eslint-import-resolver-custom-alias': {
39
- alias: {
40
- $lib: 'src/lib',
41
- $app: 'node_modules/@sveltejs/kit/src/runtime/app',
42
- '@sveltejs/kit': 'node_modules/@sveltejs/kit/src/exports/index.js',
43
- },
44
- extensions: ['.js'],
45
- },
46
- },
27
+ 'import-x/resolver': { typescript: true, node: true },
47
28
  react: { version: '999.999.999' },
29
+ 'st1ggy/import-aliases': {
30
+ $lib: 'src/lib',
31
+ $app: 'node_modules/@sveltejs/kit/src/runtime/app',
32
+ '@sveltejs/kit': 'node_modules/@sveltejs/kit/src/exports/index.js',
33
+ },
48
34
  },
49
35
  },
50
36
  {
@@ -53,25 +39,19 @@ export default {
53
39
  'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'],
54
40
  'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],
55
41
  'import-x/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts'] },
56
- 'import-x/resolver': {
57
- typescript: true,
58
- node: true,
59
- 'eslint-import-resolver-custom-alias': {
60
- alias: {
61
- $lib: 'src/lib',
62
- $app: 'node_modules/@sveltejs/kit/src/runtime/app',
63
- '@sveltejs/kit': 'node_modules/@sveltejs/kit/src/exports/index.js',
64
- },
65
- extensions: ['.js'],
66
- },
67
- },
42
+ 'import-x/resolver': { typescript: true, node: true },
68
43
  react: { version: '999.999.999' },
44
+ 'st1ggy/import-aliases': {
45
+ $lib: 'src/lib',
46
+ $app: 'node_modules/@sveltejs/kit/src/runtime/app',
47
+ '@sveltejs/kit': 'node_modules/@sveltejs/kit/src/exports/index.js',
48
+ },
69
49
  },
70
50
  },
71
51
  ],
72
52
  },
73
53
  profiles: {
74
- '19bd8fa797f7662f': {
54
+ '2d0b12576a0ab8bc': {
75
55
  rules: {
76
56
  'stylistic-js/lines-between-class-members': [
77
57
  2,
@@ -239,10 +219,10 @@ export default {
239
219
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
240
220
  'eslint/prefer-template': [2],
241
221
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
242
- 'prettier/prettier': [2],
243
222
  'eslint/require-yield': [2],
244
223
  'sonarjs/assertions-in-test-cases': [2],
245
224
  'sonarjs/async-test-assertions': [2],
225
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
246
226
  'sonarjs/aws-apigateway-public-api': [2],
247
227
  'sonarjs/aws-ec2-rds-dms-public': [2],
248
228
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -305,14 +285,17 @@ export default {
305
285
  'sonarjs/no-clear-text-protocols': [2],
306
286
  'sonarjs/no-code-after-done': [2],
307
287
  'sonarjs/no-dead-store': [2],
288
+ 'sonarjs/no-debounce-throttle-in-render': [2],
308
289
  'sonarjs/no-debug-commands-in-ui-tests': [2],
309
290
  'sonarjs/no-default-utility-imports': [2],
310
291
  'sonarjs/no-delete-var': [2],
311
292
  'sonarjs/no-duplicate-in-composite': [2],
293
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
312
294
  'sonarjs/no-duplicate-test-title': [2],
313
295
  'sonarjs/no-duplicated-branches': [2],
314
296
  'sonarjs/no-element-overwrite': [2],
315
297
  'sonarjs/no-empty-collection': [2],
298
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
316
299
  'sonarjs/no-empty-test-file': [2],
317
300
  'sonarjs/no-empty-test-title': [2],
318
301
  'sonarjs/no-equals-in-for-termination': [2],
@@ -345,10 +328,10 @@ export default {
345
328
  'sonarjs/no-labels': [2],
346
329
  'sonarjs/no-literal-call': [2],
347
330
  'sonarjs/no-mime-sniff': [2],
348
- 'sonarjs/no-mixed-completion-style': [2],
331
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
349
332
  'sonarjs/no-nested-assignment': [2],
350
333
  'sonarjs/no-nested-conditional': [2],
351
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
334
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
352
335
  'sonarjs/no-nested-template-literals': [2],
353
336
  'sonarjs/no-os-command-from-path': [2],
354
337
  'sonarjs/no-parameter-reassignment': [2],
@@ -372,12 +355,17 @@ export default {
372
355
  'sonarjs/no-useless-catch': [2],
373
356
  'sonarjs/no-useless-increment': [2],
374
357
  'sonarjs/no-useless-react-setstate': [2],
358
+ 'sonarjs/no-vue-class-component': [2],
359
+ 'sonarjs/no-vue-mixins': [2],
375
360
  'sonarjs/no-weak-cipher': [2],
376
361
  'sonarjs/no-weak-keys': [2],
377
362
  'sonarjs/non-existent-operator': [2],
378
363
  'sonarjs/object-alt-content': [2],
379
364
  'sonarjs/parameterized-tests': [2],
365
+ 'sonarjs/prefer-cypress-should': [2],
380
366
  'sonarjs/prefer-default-last': [2],
367
+ 'sonarjs/prefer-native-axios-alternative': [2],
368
+ 'sonarjs/prefer-native-jquery-alternative': [2],
381
369
  'sonarjs/prefer-native-lodash-alternative': [2],
382
370
  'sonarjs/prefer-promise-shorthand': [2],
383
371
  'typescript/prefer-regexp-exec': [2],
@@ -400,12 +388,15 @@ export default {
400
388
  'sonarjs/table-header': [2],
401
389
  'sonarjs/table-header-reference': [2],
402
390
  'sonarjs/test-check-exception': [2],
391
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
392
+ 'sonarjs/testing-library-query-assertion': [2],
403
393
  'sonarjs/todo-tag': [1],
404
394
  'sonarjs/unverified-certificate': [2],
405
395
  'sonarjs/unverified-hostname': [2],
406
396
  'sonarjs/updated-const-var': [2],
407
397
  'sonarjs/updated-loop-counter': [2],
408
398
  'sonarjs/use-type-alias': [2],
399
+ 'sonarjs/vitest-mock-at-module-scope': [2],
409
400
  'sonarjs/weak-ssl': [2],
410
401
  'sonarjs/x-powered-by': [2],
411
402
  'sonarjs/xml-parser-xxe': [2],
@@ -875,7 +866,7 @@ export default {
875
866
  WeakSet: 'readonly',
876
867
  },
877
868
  },
878
- de6241fa04ffc18f: {
869
+ '3b82214e388dbd5b': {
879
870
  rules: {
880
871
  'stylistic-js/lines-between-class-members': [
881
872
  2,
@@ -1043,10 +1034,10 @@ export default {
1043
1034
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
1044
1035
  'eslint/prefer-template': [2],
1045
1036
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
1046
- 'prettier/prettier': [2],
1047
1037
  'eslint/require-yield': [2],
1048
1038
  'sonarjs/assertions-in-test-cases': [2],
1049
1039
  'sonarjs/async-test-assertions': [2],
1040
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
1050
1041
  'sonarjs/aws-apigateway-public-api': [2],
1051
1042
  'sonarjs/aws-ec2-rds-dms-public': [2],
1052
1043
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -1109,14 +1100,17 @@ export default {
1109
1100
  'sonarjs/no-clear-text-protocols': [2],
1110
1101
  'sonarjs/no-code-after-done': [2],
1111
1102
  'sonarjs/no-dead-store': [2],
1103
+ 'sonarjs/no-debounce-throttle-in-render': [2],
1112
1104
  'sonarjs/no-debug-commands-in-ui-tests': [2],
1113
1105
  'sonarjs/no-default-utility-imports': [2],
1114
1106
  'sonarjs/no-delete-var': [2],
1115
1107
  'sonarjs/no-duplicate-in-composite': [2],
1108
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
1116
1109
  'sonarjs/no-duplicate-test-title': [2],
1117
1110
  'sonarjs/no-duplicated-branches': [2],
1118
1111
  'sonarjs/no-element-overwrite': [2],
1119
1112
  'sonarjs/no-empty-collection': [2],
1113
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
1120
1114
  'sonarjs/no-empty-test-file': [2],
1121
1115
  'sonarjs/no-empty-test-title': [2],
1122
1116
  'sonarjs/no-equals-in-for-termination': [2],
@@ -1149,10 +1143,10 @@ export default {
1149
1143
  'sonarjs/no-labels': [2],
1150
1144
  'sonarjs/no-literal-call': [2],
1151
1145
  'sonarjs/no-mime-sniff': [2],
1152
- 'sonarjs/no-mixed-completion-style': [2],
1146
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
1153
1147
  'sonarjs/no-nested-assignment': [2],
1154
1148
  'sonarjs/no-nested-conditional': [2],
1155
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
1149
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
1156
1150
  'sonarjs/no-nested-template-literals': [2],
1157
1151
  'sonarjs/no-os-command-from-path': [2],
1158
1152
  'sonarjs/no-parameter-reassignment': [2],
@@ -1176,12 +1170,17 @@ export default {
1176
1170
  'sonarjs/no-useless-catch': [2],
1177
1171
  'sonarjs/no-useless-increment': [2],
1178
1172
  'sonarjs/no-useless-react-setstate': [2],
1173
+ 'sonarjs/no-vue-class-component': [2],
1174
+ 'sonarjs/no-vue-mixins': [2],
1179
1175
  'sonarjs/no-weak-cipher': [2],
1180
1176
  'sonarjs/no-weak-keys': [2],
1181
1177
  'sonarjs/non-existent-operator': [2],
1182
1178
  'sonarjs/object-alt-content': [2],
1183
1179
  'sonarjs/parameterized-tests': [2],
1180
+ 'sonarjs/prefer-cypress-should': [2],
1184
1181
  'sonarjs/prefer-default-last': [2],
1182
+ 'sonarjs/prefer-native-axios-alternative': [2],
1183
+ 'sonarjs/prefer-native-jquery-alternative': [2],
1185
1184
  'sonarjs/prefer-native-lodash-alternative': [2],
1186
1185
  'sonarjs/prefer-promise-shorthand': [2],
1187
1186
  'typescript/prefer-regexp-exec': [2],
@@ -1204,12 +1203,15 @@ export default {
1204
1203
  'sonarjs/table-header': [2],
1205
1204
  'sonarjs/table-header-reference': [2],
1206
1205
  'sonarjs/test-check-exception': [2],
1206
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
1207
+ 'sonarjs/testing-library-query-assertion': [2],
1207
1208
  'sonarjs/todo-tag': [1],
1208
1209
  'sonarjs/unverified-certificate': [2],
1209
1210
  'sonarjs/unverified-hostname': [2],
1210
1211
  'sonarjs/updated-const-var': [2],
1211
1212
  'sonarjs/updated-loop-counter': [2],
1212
1213
  'sonarjs/use-type-alias': [2],
1214
+ 'sonarjs/vitest-mock-at-module-scope': [2],
1213
1215
  'sonarjs/weak-ssl': [2],
1214
1216
  'sonarjs/x-powered-by': [2],
1215
1217
  'sonarjs/xml-parser-xxe': [2],
@@ -1679,7 +1681,7 @@ export default {
1679
1681
  WeakSet: 'readonly',
1680
1682
  },
1681
1683
  },
1682
- e9517a4ebff6ecbc: {
1684
+ '1e1c69dd076f71a0': {
1683
1685
  rules: {
1684
1686
  'stylistic-js/lines-between-class-members': [
1685
1687
  2,
@@ -1847,10 +1849,10 @@ export default {
1847
1849
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
1848
1850
  'eslint/prefer-template': [2],
1849
1851
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
1850
- 'prettier/prettier': [2],
1851
1852
  'eslint/require-yield': [2],
1852
1853
  'sonarjs/assertions-in-test-cases': [2],
1853
1854
  'sonarjs/async-test-assertions': [2],
1855
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
1854
1856
  'sonarjs/aws-apigateway-public-api': [2],
1855
1857
  'sonarjs/aws-ec2-rds-dms-public': [2],
1856
1858
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -1913,14 +1915,17 @@ export default {
1913
1915
  'sonarjs/no-clear-text-protocols': [2],
1914
1916
  'sonarjs/no-code-after-done': [2],
1915
1917
  'sonarjs/no-dead-store': [2],
1918
+ 'sonarjs/no-debounce-throttle-in-render': [2],
1916
1919
  'sonarjs/no-debug-commands-in-ui-tests': [2],
1917
1920
  'sonarjs/no-default-utility-imports': [2],
1918
1921
  'sonarjs/no-delete-var': [2],
1919
1922
  'sonarjs/no-duplicate-in-composite': [2],
1923
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
1920
1924
  'sonarjs/no-duplicate-test-title': [2],
1921
1925
  'sonarjs/no-duplicated-branches': [2],
1922
1926
  'sonarjs/no-element-overwrite': [2],
1923
1927
  'sonarjs/no-empty-collection': [2],
1928
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
1924
1929
  'sonarjs/no-empty-test-file': [2],
1925
1930
  'sonarjs/no-empty-test-title': [2],
1926
1931
  'sonarjs/no-equals-in-for-termination': [2],
@@ -1953,10 +1958,10 @@ export default {
1953
1958
  'sonarjs/no-labels': [2],
1954
1959
  'sonarjs/no-literal-call': [2],
1955
1960
  'sonarjs/no-mime-sniff': [2],
1956
- 'sonarjs/no-mixed-completion-style': [2],
1961
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
1957
1962
  'sonarjs/no-nested-assignment': [2],
1958
1963
  'sonarjs/no-nested-conditional': [2],
1959
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
1964
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
1960
1965
  'sonarjs/no-nested-template-literals': [2],
1961
1966
  'sonarjs/no-os-command-from-path': [2],
1962
1967
  'sonarjs/no-parameter-reassignment': [2],
@@ -1980,12 +1985,17 @@ export default {
1980
1985
  'sonarjs/no-useless-catch': [2],
1981
1986
  'sonarjs/no-useless-increment': [2],
1982
1987
  'sonarjs/no-useless-react-setstate': [2],
1988
+ 'sonarjs/no-vue-class-component': [2],
1989
+ 'sonarjs/no-vue-mixins': [2],
1983
1990
  'sonarjs/no-weak-cipher': [2],
1984
1991
  'sonarjs/no-weak-keys': [2],
1985
1992
  'sonarjs/non-existent-operator': [2],
1986
1993
  'sonarjs/object-alt-content': [2],
1987
1994
  'sonarjs/parameterized-tests': [2],
1995
+ 'sonarjs/prefer-cypress-should': [2],
1988
1996
  'sonarjs/prefer-default-last': [2],
1997
+ 'sonarjs/prefer-native-axios-alternative': [2],
1998
+ 'sonarjs/prefer-native-jquery-alternative': [2],
1989
1999
  'sonarjs/prefer-native-lodash-alternative': [2],
1990
2000
  'sonarjs/prefer-promise-shorthand': [2],
1991
2001
  'typescript/prefer-regexp-exec': 'off',
@@ -2008,12 +2018,15 @@ export default {
2008
2018
  'sonarjs/table-header': [2],
2009
2019
  'sonarjs/table-header-reference': [2],
2010
2020
  'sonarjs/test-check-exception': [2],
2021
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
2022
+ 'sonarjs/testing-library-query-assertion': [2],
2011
2023
  'sonarjs/todo-tag': [1],
2012
2024
  'sonarjs/unverified-certificate': [2],
2013
2025
  'sonarjs/unverified-hostname': [2],
2014
2026
  'sonarjs/updated-const-var': [2],
2015
2027
  'sonarjs/updated-loop-counter': [2],
2016
2028
  'sonarjs/use-type-alias': [2],
2029
+ 'sonarjs/vitest-mock-at-module-scope': [2],
2017
2030
  'sonarjs/weak-ssl': [2],
2018
2031
  'sonarjs/x-powered-by': [2],
2019
2032
  'sonarjs/xml-parser-xxe': [2],
@@ -2483,7 +2496,7 @@ export default {
2483
2496
  WeakSet: 'readonly',
2484
2497
  },
2485
2498
  },
2486
- '623b9ded3e11ecbe': {
2499
+ '9423cfff0b071efa': {
2487
2500
  rules: {
2488
2501
  'stylistic-js/lines-between-class-members': [
2489
2502
  2,
@@ -2648,10 +2661,10 @@ export default {
2648
2661
  'eslint/prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
2649
2662
  'eslint/prefer-template': [2],
2650
2663
  'eslint-js/preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
2651
- 'prettier/prettier': 'off',
2652
2664
  'eslint/require-yield': [2],
2653
2665
  'sonarjs/assertions-in-test-cases': [2],
2654
2666
  'sonarjs/async-test-assertions': [2],
2667
+ 'sonarjs/avoid-mutating-nested-properties-of-shallow-clones': [2],
2655
2668
  'sonarjs/aws-apigateway-public-api': [2],
2656
2669
  'sonarjs/aws-ec2-rds-dms-public': [2],
2657
2670
  'sonarjs/aws-ec2-unencrypted-ebs-volume': [2],
@@ -2714,14 +2727,17 @@ export default {
2714
2727
  'sonarjs/no-clear-text-protocols': [2],
2715
2728
  'sonarjs/no-code-after-done': [2],
2716
2729
  'sonarjs/no-dead-store': [2],
2730
+ 'sonarjs/no-debounce-throttle-in-render': [2],
2717
2731
  'sonarjs/no-debug-commands-in-ui-tests': [2],
2718
2732
  'sonarjs/no-default-utility-imports': [2],
2719
2733
  'sonarjs/no-delete-var': [2],
2720
2734
  'sonarjs/no-duplicate-in-composite': [2],
2735
+ 'sonarjs/no-duplicate-parameterized-test-case': [2],
2721
2736
  'sonarjs/no-duplicate-test-title': [2],
2722
2737
  'sonarjs/no-duplicated-branches': [2],
2723
2738
  'sonarjs/no-element-overwrite': [2],
2724
2739
  'sonarjs/no-empty-collection': [2],
2740
+ 'sonarjs/no-empty-parameterized-test-dataset': [2],
2725
2741
  'sonarjs/no-empty-test-file': [2],
2726
2742
  'sonarjs/no-empty-test-title': [2],
2727
2743
  'sonarjs/no-equals-in-for-termination': [2],
@@ -2754,10 +2770,10 @@ export default {
2754
2770
  'sonarjs/no-labels': [2],
2755
2771
  'sonarjs/no-literal-call': [2],
2756
2772
  'sonarjs/no-mime-sniff': [2],
2757
- 'sonarjs/no-mixed-completion-style': [2],
2773
+ 'sonarjs/no-mutate-reactive-state-in-updated-hook': [2],
2758
2774
  'sonarjs/no-nested-assignment': [2],
2759
2775
  'sonarjs/no-nested-conditional': [2],
2760
- 'sonarjs/no-nested-functions': [2, { threshold: 4 }],
2776
+ 'sonarjs/no-nested-functions': [2, { threshold: 5 }],
2761
2777
  'sonarjs/no-nested-template-literals': [2],
2762
2778
  'sonarjs/no-os-command-from-path': [2],
2763
2779
  'sonarjs/no-parameter-reassignment': [2],
@@ -2781,12 +2797,17 @@ export default {
2781
2797
  'sonarjs/no-useless-catch': [2],
2782
2798
  'sonarjs/no-useless-increment': [2],
2783
2799
  'sonarjs/no-useless-react-setstate': [2],
2800
+ 'sonarjs/no-vue-class-component': [2],
2801
+ 'sonarjs/no-vue-mixins': [2],
2784
2802
  'sonarjs/no-weak-cipher': [2],
2785
2803
  'sonarjs/no-weak-keys': [2],
2786
2804
  'sonarjs/non-existent-operator': [2],
2787
2805
  'sonarjs/object-alt-content': [2],
2788
2806
  'sonarjs/parameterized-tests': [2],
2807
+ 'sonarjs/prefer-cypress-should': [2],
2789
2808
  'sonarjs/prefer-default-last': [2],
2809
+ 'sonarjs/prefer-native-axios-alternative': [2],
2810
+ 'sonarjs/prefer-native-jquery-alternative': [2],
2790
2811
  'sonarjs/prefer-native-lodash-alternative': [2],
2791
2812
  'sonarjs/prefer-promise-shorthand': [2],
2792
2813
  'typescript/prefer-regexp-exec': 'off',
@@ -2809,12 +2830,15 @@ export default {
2809
2830
  'sonarjs/table-header': [2],
2810
2831
  'sonarjs/table-header-reference': [2],
2811
2832
  'sonarjs/test-check-exception': [2],
2833
+ 'sonarjs/testing-library-prefer-query-by-disappearance': [2],
2834
+ 'sonarjs/testing-library-query-assertion': [2],
2812
2835
  'sonarjs/todo-tag': [1],
2813
2836
  'sonarjs/unverified-certificate': [2],
2814
2837
  'sonarjs/unverified-hostname': [2],
2815
2838
  'sonarjs/updated-const-var': [2],
2816
2839
  'sonarjs/updated-loop-counter': [2],
2817
2840
  'sonarjs/use-type-alias': [2],
2841
+ 'sonarjs/vitest-mock-at-module-scope': [2],
2818
2842
  'sonarjs/weak-ssl': [2],
2819
2843
  'sonarjs/x-powered-by': [2],
2820
2844
  'sonarjs/xml-parser-xxe': [2],
@@ -3286,16 +3310,16 @@ export default {
3286
3310
  },
3287
3311
  },
3288
3312
  overrides: [
3289
- { files: ['**/*.js'], profile: '19bd8fa797f7662f' },
3290
- { files: ['**/*.ts'], profile: 'de6241fa04ffc18f' },
3291
- { files: ['**/*.cjs'], profile: '19bd8fa797f7662f' },
3292
- { files: ['**/*.cts'], profile: 'de6241fa04ffc18f' },
3293
- { files: ['**/*.jsx', '**/*.mjs'], profile: '19bd8fa797f7662f' },
3294
- { files: ['**/*.mts', '**/*.tsx'], profile: 'de6241fa04ffc18f' },
3295
- { files: ['**/*.vue'], profile: 'e9517a4ebff6ecbc' },
3296
- { files: ['**/*.d.ts'], profile: 'de6241fa04ffc18f' },
3297
- { files: ['**/*.svelte'], profile: '623b9ded3e11ecbe' },
3298
- { files: ['**/*.svelte.js'], profile: '19bd8fa797f7662f' },
3299
- { files: ['**/*.svelte.ts'], profile: 'de6241fa04ffc18f' },
3313
+ { files: ['**/*.js'], profile: '2d0b12576a0ab8bc' },
3314
+ { files: ['**/*.ts'], profile: '3b82214e388dbd5b' },
3315
+ { files: ['**/*.cjs'], profile: '2d0b12576a0ab8bc' },
3316
+ { files: ['**/*.cts'], profile: '3b82214e388dbd5b' },
3317
+ { files: ['**/*.jsx', '**/*.mjs'], profile: '2d0b12576a0ab8bc' },
3318
+ { files: ['**/*.mts', '**/*.tsx'], profile: '3b82214e388dbd5b' },
3319
+ { files: ['**/*.vue'], profile: '1e1c69dd076f71a0' },
3320
+ { files: ['**/*.d.ts'], profile: '3b82214e388dbd5b' },
3321
+ { files: ['**/*.svelte'], profile: '9423cfff0b071efa' },
3322
+ { files: ['**/*.svelte.js'], profile: '2d0b12576a0ab8bc' },
3323
+ { files: ['**/*.svelte.ts'], profile: '3b82214e388dbd5b' },
3300
3324
  ],
3301
3325
  }
@@ -8,7 +8,7 @@ const pluginFiles = {
8
8
  'unicorn-js': 'unicorn',
9
9
  sonarjs: 'sonarjs',
10
10
  'typescript-js': 'typescript',
11
- 'react-js': 'react',
11
+ 'react-modern': 'react',
12
12
  'react-hooks-js': 'react-hooks',
13
13
  'next-js': 'next',
14
14
  solid: 'solid',
@@ -0,0 +1,79 @@
1
+ // Native script rules shared with eslint-plugin-vue's flat/recommended preset.
2
+ // Template-only rules remain in the companion ESLint preset.
3
+ const vueErrors = [
4
+ 'no-arrow-functions-in-watch',
5
+ 'no-async-in-computed-properties',
6
+ 'no-computed-properties-in-data',
7
+ 'no-deprecated-data-object-declaration',
8
+ 'no-deprecated-delete-set',
9
+ 'no-deprecated-destroyed-lifecycle',
10
+ 'no-deprecated-events-api',
11
+ 'no-deprecated-model-definition',
12
+ 'no-deprecated-props-default-this',
13
+ 'no-deprecated-vue-config-keycodes',
14
+ 'no-dupe-keys',
15
+ 'no-export-in-script-setup',
16
+ 'no-expose-after-await',
17
+ 'no-lifecycle-after-await',
18
+ 'no-reserved-component-names',
19
+ 'no-reserved-keys',
20
+ 'no-reserved-props',
21
+ 'no-shared-component-data',
22
+ 'no-side-effects-in-computed-properties',
23
+ 'no-watch-after-await',
24
+ 'prefer-import-from-vue',
25
+ 'require-prop-type-constructor',
26
+ 'require-render-return',
27
+ 'require-slots-as-functions',
28
+ 'return-in-computed-property',
29
+ 'return-in-emits-validator',
30
+ 'valid-define-emits',
31
+ 'valid-define-options',
32
+ 'valid-define-props',
33
+ 'valid-next-tick',
34
+ ]
35
+ const vueWarnings = [
36
+ 'component-definition-name-casing',
37
+ 'prop-name-casing',
38
+ 'require-default-prop',
39
+ 'require-prop-types',
40
+ 'no-multiple-slot-args',
41
+ 'no-required-prop-with-default',
42
+ ]
43
+
44
+ export const vueRules = Object.fromEntries([
45
+ ...vueErrors.map((name) => [`vue/${name}`, 'error']),
46
+ ...vueWarnings.map((name) => [`vue/${name}`, 'warn']),
47
+ ])
48
+
49
+ export const nuxtRules = {
50
+ 'nuxt/prefer-import-meta': 'error',
51
+ 'nuxt/nuxt-config-keys-order': 'warn',
52
+ 'nuxt/no-nuxt-config-test-key': 'error',
53
+ 'nuxt/no-page-meta-runtime-values': 'error',
54
+ }
55
+
56
+ export const angularRules = Object.fromEntries(
57
+ [
58
+ 'contextual-lifecycle',
59
+ 'no-empty-lifecycle-method',
60
+ 'no-input-rename',
61
+ 'no-inputs-metadata-property',
62
+ 'no-output-native',
63
+ 'no-output-on-prefix',
64
+ 'no-output-rename',
65
+ 'no-outputs-metadata-property',
66
+ 'prefer-inject',
67
+ 'prefer-on-push-component-change-detection',
68
+ 'prefer-standalone',
69
+ 'use-pipe-transform-interface',
70
+ ].map((name) => [`angular/${name}`, 'error']),
71
+ )
72
+
73
+ export function recommendedAngularRules(plugin, namespace) {
74
+ return Object.fromEntries(
75
+ Object.entries(plugin.rules)
76
+ .filter(([, rule]) => rule.meta.docs?.recommended === 'recommended')
77
+ .map(([name]) => [`${namespace}/${name}`, 'error']),
78
+ )
79
+ }
@@ -1,5 +1,29 @@
1
1
  // Keep Oxlint types in a separate ambient declaration file so existing ESLint
2
2
  // consumers do not need to install the optional Oxlint peer.
3
+ declare module '@st1ggy/linter-config/angular-ox' {
4
+ import type { OxlintConfig } from 'oxlint'
5
+
6
+ const config: OxlintConfig
7
+
8
+ export default config
9
+ }
10
+
11
+ declare module '@st1ggy/linter-config/vue-ox' {
12
+ import type { OxlintConfig } from 'oxlint'
13
+
14
+ const config: OxlintConfig
15
+
16
+ export default config
17
+ }
18
+
19
+ declare module '@st1ggy/linter-config/nuxt-ox' {
20
+ import type { OxlintConfig } from 'oxlint'
21
+
22
+ const config: OxlintConfig
23
+
24
+ export default config
25
+ }
26
+
3
27
  declare module '@st1ggy/linter-config/common-ox' {
4
28
  import type { OxlintConfig } from 'oxlint'
5
29
 
@@ -0,0 +1,14 @@
1
+ import { fileURLToPath } from 'node:url'
2
+
3
+ import { angularRules } from './framework-rules.js'
4
+ import common from './oxlint.config.common.js'
5
+
6
+ export default {
7
+ ...common,
8
+ ignorePatterns: [...common.ignorePatterns, '**/.angular/**', '**/dist/**'],
9
+ jsPlugins: [
10
+ ...common.jsPlugins,
11
+ { name: 'angular', specifier: fileURLToPath(new URL('plugins/angular.js', import.meta.url)) },
12
+ ],
13
+ overrides: [...common.overrides, { files: ['**/*.ts'], rules: angularRules }],
14
+ }
@@ -0,0 +1,24 @@
1
+ import { fileURLToPath } from 'node:url'
2
+
3
+ import { nuxtRules } from './framework-rules.js'
4
+ import vue from './oxlint.config.vue.js'
5
+
6
+ const configRules = {
7
+ 'nuxt/nuxt-config-keys-order': nuxtRules['nuxt/nuxt-config-keys-order'],
8
+ 'nuxt/no-nuxt-config-test-key': nuxtRules['nuxt/no-nuxt-config-test-key'],
9
+ }
10
+ const scriptRules = Object.fromEntries(Object.entries(nuxtRules).filter(([name]) => !Object.hasOwn(configRules, name)))
11
+
12
+ export default {
13
+ ...vue,
14
+ ignorePatterns: [...vue.ignorePatterns, '**/.nuxt/**', '**/.output/**'],
15
+ jsPlugins: [
16
+ ...vue.jsPlugins,
17
+ { name: 'nuxt', specifier: fileURLToPath(new URL('plugins/nuxt.js', import.meta.url)) },
18
+ ],
19
+ overrides: [
20
+ ...vue.overrides,
21
+ { files: ['**/*.{js,mjs,cjs,ts,mts,cts,vue}'], rules: scriptRules },
22
+ { files: ['**/nuxt.config.{js,mjs,cjs,ts,mts,cts}'], rules: configRules },
23
+ ],
24
+ }
@@ -0,0 +1,8 @@
1
+ import { vueRules } from './framework-rules.js'
2
+ import common from './oxlint.config.common.js'
3
+
4
+ export default {
5
+ ...common,
6
+ plugins: [...common.plugins, 'vue'],
7
+ overrides: [...common.overrides, { files: ['**/*.vue'], rules: vueRules }],
8
+ }
@@ -0,0 +1 @@
1
+ export { default } from '@angular-eslint/eslint-plugin'
@@ -1,4 +1,4 @@
1
- import importPlugin, { rules as importRules } from 'eslint-plugin-import-x'
1
+ import importPlugin, { rules as importRules } from '../../eslint/configs/import-plugin.js'
2
2
 
3
3
  function scopedContext(context) {
4
4
  const scopes = context.settings['st1ggy/import-scopes'] ?? []
@@ -0,0 +1 @@
1
+ export { default } from '@nuxt/eslint-plugin'
@@ -1 +1 @@
1
- export { default } from 'eslint-plugin-react'
1
+ export { default } from '@eslint-react/eslint-plugin'