@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,11 +1,36 @@
1
- export const OX_VERSIONS = { oxlint: '1.86.0', 'oxlint-tsgolint': '7.0.2003' }
1
+ export const OX_VERSIONS = { oxlint: '1.90.0', 'oxlint-tsgolint': '7.0.2005' }
2
+ export const OXFMT_VERSION = '0.75.0'
3
+ export const OX_ESLINT_VERSION = '10.14.0'
4
+ export const OXFMT_STACKS = ['common', 'react', 'solid', 'next', 'svelte', 'astro', 'angular', 'vue', 'nuxt']
5
+ export const SUPPLEMENT_STACKS = ['svelte', 'astro', 'angular', 'vue', 'nuxt']
6
+
7
+ export const OXFMT_PRESETS = {
8
+ svelte: 'oxfmt-svelte',
9
+ astro: 'oxfmt-astro',
10
+ angular: 'oxfmt-angular',
11
+ }
12
+
13
+ export function oxStackToolVersions(stack) {
14
+ return {
15
+ ...OX_VERSIONS,
16
+ ...(OXFMT_STACKS.includes(stack) && { oxfmt: OXFMT_VERSION }),
17
+ ...(SUPPLEMENT_STACKS.includes(stack) && { eslint: OX_ESLINT_VERSION }),
18
+ }
19
+ }
2
20
 
3
21
  // Only integrations actually used by the corresponding generated bundle.
4
22
  export const OX_FRAMEWORK_PACKAGES = {
5
23
  common: [],
6
- react: ['eslint-plugin-react', 'eslint-plugin-react-hooks'],
24
+ react: ['@eslint-react/eslint-plugin', 'eslint-plugin-react-hooks'],
7
25
  solid: ['eslint-plugin-solid'],
8
- next: ['@next/eslint-plugin-next', 'eslint-plugin-react', 'eslint-plugin-react-hooks'],
9
- svelte: ['eslint-plugin-svelte', 'prettier-plugin-svelte'],
10
- astro: ['eslint-plugin-astro', 'prettier-plugin-astro'],
26
+ next: ['@next/eslint-plugin-next', '@eslint-react/eslint-plugin', 'eslint-plugin-react-hooks'],
27
+ svelte: ['eslint-plugin-svelte', 'svelte'],
28
+ astro: ['eslint-plugin-astro', '@astrojs/compiler-rs'],
29
+ angular: [
30
+ '@angular-eslint/eslint-plugin',
31
+ '@angular-eslint/eslint-plugin-template',
32
+ '@angular-eslint/template-parser',
33
+ ],
34
+ vue: ['eslint-plugin-vue', 'vue-eslint-parser'],
35
+ nuxt: ['eslint-plugin-vue', 'vue-eslint-parser', '@nuxt/eslint-plugin'],
11
36
  }