@apst/oxlint 0.2.0 → 0.4.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 (112) hide show
  1. package/README.md +0 -34
  2. package/dist/constants/default.d.ts +1 -1
  3. package/dist/constants/ignore-patterns.d.ts +16 -2
  4. package/dist/constants/ignore-patterns.js +58 -16
  5. package/dist/constants/ignore-patterns.js.map +1 -1
  6. package/dist/constants/ignore-patterns.mjs +49 -17
  7. package/dist/constants/ignore-patterns.mjs.map +1 -1
  8. package/dist/functions/define.js +2 -2
  9. package/dist/functions/define.js.map +1 -1
  10. package/dist/functions/define.mjs +4 -4
  11. package/dist/functions/define.mjs.map +1 -1
  12. package/dist/functions/merge.js +20 -4
  13. package/dist/functions/merge.js.map +1 -1
  14. package/dist/functions/merge.mjs +19 -4
  15. package/dist/functions/merge.mjs.map +1 -1
  16. package/dist/presets/common/index.d.ts +3 -3
  17. package/dist/presets/common/index.js +2 -0
  18. package/dist/presets/common/index.mjs +3 -3
  19. package/dist/presets/common/preset/index.js +3 -4
  20. package/dist/presets/common/preset/index.js.map +1 -1
  21. package/dist/presets/common/preset/index.mjs +3 -4
  22. package/dist/presets/common/preset/index.mjs.map +1 -1
  23. package/dist/presets/common/rules/eslint.d.ts +8 -4
  24. package/dist/presets/common/rules/eslint.js +4 -4
  25. package/dist/presets/common/rules/eslint.js.map +1 -1
  26. package/dist/presets/common/rules/eslint.mjs +4 -4
  27. package/dist/presets/common/rules/eslint.mjs.map +1 -1
  28. package/dist/presets/common/rules/import.d.ts +10 -0
  29. package/dist/presets/common/rules/import.js +5 -0
  30. package/dist/presets/common/rules/import.js.map +1 -1
  31. package/dist/presets/common/rules/import.mjs +5 -0
  32. package/dist/presets/common/rules/import.mjs.map +1 -1
  33. package/dist/presets/common/rules/oxc.d.ts +6 -1
  34. package/dist/presets/common/rules/oxc.js +1 -0
  35. package/dist/presets/common/rules/oxc.js.map +1 -1
  36. package/dist/presets/common/rules/oxc.mjs +1 -1
  37. package/dist/presets/common/rules/oxc.mjs.map +1 -1
  38. package/dist/presets/common/rules/typescript.d.ts +56 -42
  39. package/dist/presets/common/rules/typescript.js +19 -14
  40. package/dist/presets/common/rules/typescript.js.map +1 -1
  41. package/dist/presets/common/rules/typescript.mjs +19 -14
  42. package/dist/presets/common/rules/typescript.mjs.map +1 -1
  43. package/dist/presets/common/rules/unicorn.d.ts +11 -3
  44. package/dist/presets/common/rules/unicorn.js +7 -2
  45. package/dist/presets/common/rules/unicorn.js.map +1 -1
  46. package/dist/presets/common/rules/unicorn.mjs +7 -3
  47. package/dist/presets/common/rules/unicorn.mjs.map +1 -1
  48. package/dist/presets/jsx/preset/index.js +3 -4
  49. package/dist/presets/jsx/preset/index.js.map +1 -1
  50. package/dist/presets/jsx/preset/index.mjs +3 -4
  51. package/dist/presets/jsx/preset/index.mjs.map +1 -1
  52. package/dist/presets/jsx/rules/jsx-a11y.d.ts +16 -0
  53. package/dist/presets/jsx/rules/jsx-a11y.js +15 -0
  54. package/dist/presets/jsx/rules/jsx-a11y.js.map +1 -1
  55. package/dist/presets/jsx/rules/jsx-a11y.mjs +15 -0
  56. package/dist/presets/jsx/rules/jsx-a11y.mjs.map +1 -1
  57. package/dist/presets/next/index.d.ts +2 -1
  58. package/dist/presets/next/index.js +3 -0
  59. package/dist/presets/next/index.mjs +2 -1
  60. package/dist/presets/next/preset/index.js +3 -4
  61. package/dist/presets/next/preset/index.js.map +1 -1
  62. package/dist/presets/next/preset/index.mjs +3 -4
  63. package/dist/presets/next/preset/index.mjs.map +1 -1
  64. package/dist/presets/next/rules/nextjs.d.ts +48 -0
  65. package/dist/presets/next/rules/nextjs.js +4 -1
  66. package/dist/presets/next/rules/nextjs.js.map +1 -1
  67. package/dist/presets/next/rules/nextjs.mjs +4 -2
  68. package/dist/presets/next/rules/nextjs.mjs.map +1 -1
  69. package/dist/presets/node/preset/index.js +3 -4
  70. package/dist/presets/node/preset/index.js.map +1 -1
  71. package/dist/presets/node/preset/index.mjs +3 -4
  72. package/dist/presets/node/preset/index.mjs.map +1 -1
  73. package/dist/presets/react/index.d.ts +2 -2
  74. package/dist/presets/react/index.js +1 -0
  75. package/dist/presets/react/index.mjs +2 -2
  76. package/dist/presets/react/preset/index.js +3 -4
  77. package/dist/presets/react/preset/index.js.map +1 -1
  78. package/dist/presets/react/preset/index.mjs +3 -4
  79. package/dist/presets/react/preset/index.mjs.map +1 -1
  80. package/dist/presets/react/rules/react.d.ts +32 -1
  81. package/dist/presets/react/rules/react.js +15 -2
  82. package/dist/presets/react/rules/react.js.map +1 -1
  83. package/dist/presets/react/rules/react.mjs +15 -3
  84. package/dist/presets/react/rules/react.mjs.map +1 -1
  85. package/dist/presets/vitest/preset/index.js +3 -4
  86. package/dist/presets/vitest/preset/index.js.map +1 -1
  87. package/dist/presets/vitest/preset/index.mjs +3 -4
  88. package/dist/presets/vitest/preset/index.mjs.map +1 -1
  89. package/dist/presets/vitest/rules/vitest.d.ts +4 -0
  90. package/dist/presets/vitest/rules/vitest.js +3 -1
  91. package/dist/presets/vitest/rules/vitest.js.map +1 -1
  92. package/dist/presets/vitest/rules/vitest.mjs +3 -1
  93. package/dist/presets/vitest/rules/vitest.mjs.map +1 -1
  94. package/dist/presets/vue/index.d.ts +4 -0
  95. package/dist/presets/vue/index.js +12 -0
  96. package/dist/presets/vue/index.mjs +5 -0
  97. package/dist/presets/vue/plugin/index.d.ts +3 -0
  98. package/dist/presets/vue/plugin/index.js +5 -0
  99. package/dist/presets/vue/plugin/index.js.map +1 -0
  100. package/dist/presets/vue/plugin/index.mjs +4 -0
  101. package/dist/presets/vue/plugin/index.mjs.map +1 -0
  102. package/dist/presets/vue/preset/index.d.ts +4 -0
  103. package/dist/presets/vue/preset/index.js +14 -0
  104. package/dist/presets/vue/preset/index.js.map +1 -0
  105. package/dist/presets/vue/preset/index.mjs +14 -0
  106. package/dist/presets/vue/preset/index.mjs.map +1 -0
  107. package/dist/presets/vue/rules/vue.d.ts +47 -0
  108. package/dist/presets/vue/rules/vue.js +32 -0
  109. package/dist/presets/vue/rules/vue.js.map +1 -0
  110. package/dist/presets/vue/rules/vue.mjs +27 -0
  111. package/dist/presets/vue/rules/vue.mjs.map +1 -0
  112. package/package.json +11 -41
@@ -1 +1 @@
1
- {"version":3,"file":"vitest.mjs","names":[],"sources":["../../../../src/presets/vitest/rules/vitest.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_VITEST_CORRECTNESS = {\n \"vitest/consistent-each-for\": [\n \"error\",\n {\n describe: \"for\",\n it: \"for\",\n suite: \"for\",\n test: \"for\",\n },\n ],\n \"vitest/hoisted-apis-on-top\": \"error\",\n \"vitest/no-conditional-tests\": \"error\",\n \"vitest/require-local-test-context-for-concurrent-snapshots\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VITEST_STYLE = {\n \"vitest/consistent-vitest-vi\": [\n \"error\",\n {\n fn: \"vi\",\n },\n ],\n \"vitest/no-import-node-test\": \"error\",\n \"vitest/prefer-called-times\": \"error\",\n \"vitest/prefer-import-in-mock\": [\n \"error\",\n {\n fixable: true,\n },\n ],\n} as const satisfies LintRules;\n\nconst RULES_VITEST = {\n ...RULES_VITEST_CORRECTNESS,\n ...RULES_VITEST_STYLE,\n} as const satisfies LintRules;\n\nexport { RULES_VITEST, RULES_VITEST_CORRECTNESS, RULES_VITEST_STYLE };\n"],"mappings":"AAEA,MAAM,2BAA2B;CAC7B,8BAA8B,CAC1B,SACA;EACI,UAAU;EACV,IAAI;EACJ,OAAO;EACP,MAAM;CACV,CACJ;CACA,8BAA8B;CAC9B,+BAA+B;CAC/B,8DAA8D;AAClE;AAEA,MAAM,qBAAqB;CACvB,+BAA+B,CAC3B,SACA,EACI,IAAI,KACR,CACJ;CACA,8BAA8B;CAC9B,8BAA8B;CAC9B,gCAAgC,CAC5B,SACA,EACI,SAAS,KACb,CACJ;AACJ;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;AACP"}
1
+ {"version":3,"file":"vitest.mjs","names":[],"sources":["../../../../src/presets/vitest/rules/vitest.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_VITEST_CORRECTNESS = {\n \"vitest/consistent-each-for\": [\n \"error\",\n {\n describe: \"for\",\n it: \"for\",\n suite: \"for\",\n test: \"for\",\n },\n ],\n \"vitest/hoisted-apis-on-top\": \"error\",\n \"vitest/no-conditional-tests\": \"error\",\n \"vitest/require-local-test-context-for-concurrent-snapshots\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VITEST_STYLE = {\n \"vitest/consistent-vitest-vi\": [\n \"error\",\n {\n fn: \"vi\",\n },\n ],\n \"vitest/no-import-node-test\": \"error\",\n \"vitest/prefer-called-times\": \"error\",\n \"vitest/prefer-import-in-mock\": [\n \"error\",\n {\n fixable: true,\n },\n ],\n \"vitest/prefer-importing-vitest-globals\": \"error\",\n \"vitest/prefer-strict-boolean-matchers\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VITEST = {\n ...RULES_VITEST_CORRECTNESS,\n ...RULES_VITEST_STYLE,\n} as const satisfies LintRules;\n\nexport { RULES_VITEST, RULES_VITEST_CORRECTNESS, RULES_VITEST_STYLE };\n"],"mappings":"AAEA,MAAM,2BAA2B;CAC7B,8BAA8B,CAC1B,SACA;EACI,UAAU;EACV,IAAI;EACJ,OAAO;EACP,MAAM;CACV,CACJ;CACA,8BAA8B;CAC9B,+BAA+B;CAC/B,8DAA8D;AAClE;AAEA,MAAM,qBAAqB;CACvB,+BAA+B,CAC3B,SACA,EACI,IAAI,KACR,CACJ;CACA,8BAA8B;CAC9B,8BAA8B;CAC9B,gCAAgC,CAC5B,SACA,EACI,SAAS,KACb,CACJ;CACA,0CAA0C;CAC1C,yCAAyC;AAC7C;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;AACP"}
@@ -0,0 +1,4 @@
1
+ import { PLUGIN_VUE } from "./plugin/index.js";
2
+ import { vuePreset } from "./preset/index.js";
3
+ import { RULES_VUE, RULES_VUE_CORRECTNESS, RULES_VUE_RESTRICTION, RULES_VUE_STYLE, RULES_VUE_SUSPICIOUS } from "./rules/vue.js";
4
+ export { PLUGIN_VUE, RULES_VUE, RULES_VUE_CORRECTNESS, RULES_VUE_RESTRICTION, RULES_VUE_STYLE, RULES_VUE_SUSPICIOUS, vuePreset };
@@ -0,0 +1,12 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_index = require('./plugin/index.js');
3
+ const require_vue = require('./rules/vue.js');
4
+ const require_index$1 = require('./preset/index.js');
5
+
6
+ exports.PLUGIN_VUE = require_index.PLUGIN_VUE;
7
+ exports.RULES_VUE = require_vue.RULES_VUE;
8
+ exports.RULES_VUE_CORRECTNESS = require_vue.RULES_VUE_CORRECTNESS;
9
+ exports.RULES_VUE_RESTRICTION = require_vue.RULES_VUE_RESTRICTION;
10
+ exports.RULES_VUE_STYLE = require_vue.RULES_VUE_STYLE;
11
+ exports.RULES_VUE_SUSPICIOUS = require_vue.RULES_VUE_SUSPICIOUS;
12
+ exports.vuePreset = require_index$1.vuePreset;
@@ -0,0 +1,5 @@
1
+ import { PLUGIN_VUE } from "./plugin/index.mjs";
2
+ import { RULES_VUE, RULES_VUE_CORRECTNESS, RULES_VUE_RESTRICTION, RULES_VUE_STYLE, RULES_VUE_SUSPICIOUS } from "./rules/vue.mjs";
3
+ import { vuePreset } from "./preset/index.mjs";
4
+
5
+ export { PLUGIN_VUE, RULES_VUE, RULES_VUE_CORRECTNESS, RULES_VUE_RESTRICTION, RULES_VUE_STYLE, RULES_VUE_SUSPICIOUS, vuePreset };
@@ -0,0 +1,3 @@
1
+ declare const PLUGIN_VUE: ["vue"];
2
+ export { PLUGIN_VUE };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+
2
+ const PLUGIN_VUE = ["vue"];
3
+
4
+ exports.PLUGIN_VUE = PLUGIN_VUE;
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/presets/vue/plugin/index.ts"],"sourcesContent":["import type { LintPlugins } from \"#/@types/oxlint\";\n\nconst PLUGIN_VUE = [\n \"vue\",\n] as const satisfies LintPlugins;\n\nexport { PLUGIN_VUE };\n"],"mappings":";AAEA,MAAM,aAAa,CACf,KACJ"}
@@ -0,0 +1,4 @@
1
+ const PLUGIN_VUE = ["vue"];
2
+
3
+ export { PLUGIN_VUE };
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/presets/vue/plugin/index.ts"],"sourcesContent":["import type { LintPlugins } from \"#/@types/oxlint\";\n\nconst PLUGIN_VUE = [\n \"vue\",\n] as const satisfies LintPlugins;\n\nexport { PLUGIN_VUE };\n"],"mappings":"AAEA,MAAM,aAAa,CACf,KACJ"}
@@ -0,0 +1,4 @@
1
+ import { Preset } from "../../../@types/preset.js";
2
+ declare const vuePreset: () => Preset;
3
+ export { vuePreset };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,14 @@
1
+ const require_index = require('../plugin/index.js');
2
+ const require_vue = require('../rules/vue.js');
3
+
4
+ const vuePreset = () => {
5
+ return () => {
6
+ return { config: {
7
+ plugins: [...require_index.PLUGIN_VUE],
8
+ rules: { ...require_vue.RULES_VUE }
9
+ } };
10
+ };
11
+ };
12
+
13
+ exports.vuePreset = vuePreset;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["PLUGIN_VUE","RULES_VUE"],"sources":["../../../../src/presets/vue/preset/index.ts"],"sourcesContent":["import type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { PLUGIN_VUE } from \"#/presets/vue/plugin\";\nimport { RULES_VUE } from \"#/presets/vue/rules/vue\";\n\nconst vuePreset = (): Preset => {\n return (): PresetResult => {\n return {\n config: {\n plugins: [\n ...PLUGIN_VUE,\n ],\n rules: {\n ...RULES_VUE,\n },\n },\n };\n };\n};\n\nexport { vuePreset };\n"],"mappings":";;;AAKA,MAAM,kBAA0B;CAC5B,aAA2B;EACvB,OAAO,EACH,QAAQ;GACJ,SAAS,CACL,GAAGA,wBACP;GACA,OAAO,EACH,GAAGC,sBACP;EACJ,EACJ;CACJ;AACJ"}
@@ -0,0 +1,14 @@
1
+ import { PLUGIN_VUE } from "../plugin/index.mjs";
2
+ import { RULES_VUE } from "../rules/vue.mjs";
3
+
4
+ const vuePreset = () => {
5
+ return () => {
6
+ return { config: {
7
+ plugins: [...PLUGIN_VUE],
8
+ rules: { ...RULES_VUE }
9
+ } };
10
+ };
11
+ };
12
+
13
+ export { vuePreset };
14
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/presets/vue/preset/index.ts"],"sourcesContent":["import type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { PLUGIN_VUE } from \"#/presets/vue/plugin\";\nimport { RULES_VUE } from \"#/presets/vue/rules/vue\";\n\nconst vuePreset = (): Preset => {\n return (): PresetResult => {\n return {\n config: {\n plugins: [\n ...PLUGIN_VUE,\n ],\n rules: {\n ...RULES_VUE,\n },\n },\n };\n };\n};\n\nexport { vuePreset };\n"],"mappings":";;;AAKA,MAAM,kBAA0B;CAC5B,aAA2B;EACvB,OAAO,EACH,QAAQ;GACJ,SAAS,CACL,GAAG,UACP;GACA,OAAO,EACH,GAAG,UACP;EACJ,EACJ;CACJ;AACJ"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * No lint rules have been configured for Options API.
3
+ */
4
+ declare const RULES_VUE_CORRECTNESS: {
5
+ readonly "vue/no-export-in-script-setup": "error";
6
+ readonly "vue/no-expose-after-await": "error";
7
+ readonly "vue/no-watch-after-await": "error";
8
+ readonly "vue/valid-define-emits": "error";
9
+ readonly "vue/valid-define-options": "error";
10
+ readonly "vue/valid-define-props": "error";
11
+ readonly "vue/valid-next-tick": "error";
12
+ };
13
+ declare const RULES_VUE_RESTRICTION: {
14
+ readonly "vue/no-import-compiler-macros": "error";
15
+ };
16
+ declare const RULES_VUE_STYLE: {
17
+ readonly "vue/define-emits-declaration": ["error", "type-based"];
18
+ readonly "vue/define-props-declaration": ["error", "type-based"];
19
+ readonly "vue/define-props-destructuring": ["error", {
20
+ readonly destructure: "never";
21
+ }];
22
+ readonly "vue/next-tick-style": ["error", "promise"];
23
+ readonly "vue/require-typed-ref": "error";
24
+ };
25
+ declare const RULES_VUE_SUSPICIOUS: {
26
+ readonly "vue/no-required-prop-with-default": "error";
27
+ };
28
+ declare const RULES_VUE: {
29
+ readonly "vue/no-required-prop-with-default": "error";
30
+ readonly "vue/define-emits-declaration": ["error", "type-based"];
31
+ readonly "vue/define-props-declaration": ["error", "type-based"];
32
+ readonly "vue/define-props-destructuring": ["error", {
33
+ readonly destructure: "never";
34
+ }];
35
+ readonly "vue/next-tick-style": ["error", "promise"];
36
+ readonly "vue/require-typed-ref": "error";
37
+ readonly "vue/no-import-compiler-macros": "error";
38
+ readonly "vue/no-export-in-script-setup": "error";
39
+ readonly "vue/no-expose-after-await": "error";
40
+ readonly "vue/no-watch-after-await": "error";
41
+ readonly "vue/valid-define-emits": "error";
42
+ readonly "vue/valid-define-options": "error";
43
+ readonly "vue/valid-define-props": "error";
44
+ readonly "vue/valid-next-tick": "error";
45
+ };
46
+ export { RULES_VUE, RULES_VUE_CORRECTNESS, RULES_VUE_RESTRICTION, RULES_VUE_STYLE, RULES_VUE_SUSPICIOUS };
47
+ //# sourceMappingURL=vue.d.ts.map
@@ -0,0 +1,32 @@
1
+
2
+ const RULES_VUE_CORRECTNESS = {
3
+ "vue/no-export-in-script-setup": "error",
4
+ "vue/no-expose-after-await": "error",
5
+ "vue/no-watch-after-await": "error",
6
+ "vue/valid-define-emits": "error",
7
+ "vue/valid-define-options": "error",
8
+ "vue/valid-define-props": "error",
9
+ "vue/valid-next-tick": "error"
10
+ };
11
+ const RULES_VUE_RESTRICTION = { "vue/no-import-compiler-macros": "error" };
12
+ const RULES_VUE_STYLE = {
13
+ "vue/define-emits-declaration": ["error", "type-based"],
14
+ "vue/define-props-declaration": ["error", "type-based"],
15
+ "vue/define-props-destructuring": ["error", { destructure: "never" }],
16
+ "vue/next-tick-style": ["error", "promise"],
17
+ "vue/require-typed-ref": "error"
18
+ };
19
+ const RULES_VUE_SUSPICIOUS = { "vue/no-required-prop-with-default": "error" };
20
+ const RULES_VUE = {
21
+ ...RULES_VUE_CORRECTNESS,
22
+ ...RULES_VUE_RESTRICTION,
23
+ ...RULES_VUE_STYLE,
24
+ ...RULES_VUE_SUSPICIOUS
25
+ };
26
+
27
+ exports.RULES_VUE = RULES_VUE;
28
+ exports.RULES_VUE_CORRECTNESS = RULES_VUE_CORRECTNESS;
29
+ exports.RULES_VUE_RESTRICTION = RULES_VUE_RESTRICTION;
30
+ exports.RULES_VUE_STYLE = RULES_VUE_STYLE;
31
+ exports.RULES_VUE_SUSPICIOUS = RULES_VUE_SUSPICIOUS;
32
+ //# sourceMappingURL=vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue.js","names":[],"sources":["../../../../src/presets/vue/rules/vue.ts"],"sourcesContent":["/**\n * No lint rules have been configured for Options API.\n */\n\nimport type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_VUE_CORRECTNESS = {\n \"vue/no-export-in-script-setup\": \"error\",\n \"vue/no-expose-after-await\": \"error\",\n \"vue/no-watch-after-await\": \"error\",\n \"vue/valid-define-emits\": \"error\",\n \"vue/valid-define-options\": \"error\",\n \"vue/valid-define-props\": \"error\",\n \"vue/valid-next-tick\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE_RESTRICTION = {\n \"vue/no-import-compiler-macros\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE_STYLE = {\n \"vue/define-emits-declaration\": [\n \"error\",\n \"type-based\",\n ],\n \"vue/define-props-declaration\": [\n \"error\",\n \"type-based\",\n ],\n \"vue/define-props-destructuring\": [\n \"error\",\n {\n destructure: \"never\",\n },\n ],\n \"vue/next-tick-style\": [\n \"error\",\n \"promise\",\n ],\n \"vue/require-typed-ref\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE_SUSPICIOUS = {\n \"vue/no-required-prop-with-default\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE = {\n ...RULES_VUE_CORRECTNESS,\n ...RULES_VUE_RESTRICTION,\n ...RULES_VUE_STYLE,\n ...RULES_VUE_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_VUE,\n RULES_VUE_CORRECTNESS,\n RULES_VUE_RESTRICTION,\n RULES_VUE_STYLE,\n RULES_VUE_SUSPICIOUS,\n};\n"],"mappings":";AAMA,MAAM,wBAAwB;CAC1B,iCAAiC;CACjC,6BAA6B;CAC7B,4BAA4B;CAC5B,0BAA0B;CAC1B,4BAA4B;CAC5B,0BAA0B;CAC1B,uBAAuB;AAC3B;AAEA,MAAM,wBAAwB,EAC1B,iCAAiC,QACrC;AAEA,MAAM,kBAAkB;CACpB,gCAAgC,CAC5B,SACA,YACJ;CACA,gCAAgC,CAC5B,SACA,YACJ;CACA,kCAAkC,CAC9B,SACA,EACI,aAAa,QACjB,CACJ;CACA,uBAAuB,CACnB,SACA,SACJ;CACA,yBAAyB;AAC7B;AAEA,MAAM,uBAAuB,EACzB,qCAAqC,QACzC;AAEA,MAAM,YAAY;CACd,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -0,0 +1,27 @@
1
+ const RULES_VUE_CORRECTNESS = {
2
+ "vue/no-export-in-script-setup": "error",
3
+ "vue/no-expose-after-await": "error",
4
+ "vue/no-watch-after-await": "error",
5
+ "vue/valid-define-emits": "error",
6
+ "vue/valid-define-options": "error",
7
+ "vue/valid-define-props": "error",
8
+ "vue/valid-next-tick": "error"
9
+ };
10
+ const RULES_VUE_RESTRICTION = { "vue/no-import-compiler-macros": "error" };
11
+ const RULES_VUE_STYLE = {
12
+ "vue/define-emits-declaration": ["error", "type-based"],
13
+ "vue/define-props-declaration": ["error", "type-based"],
14
+ "vue/define-props-destructuring": ["error", { destructure: "never" }],
15
+ "vue/next-tick-style": ["error", "promise"],
16
+ "vue/require-typed-ref": "error"
17
+ };
18
+ const RULES_VUE_SUSPICIOUS = { "vue/no-required-prop-with-default": "error" };
19
+ const RULES_VUE = {
20
+ ...RULES_VUE_CORRECTNESS,
21
+ ...RULES_VUE_RESTRICTION,
22
+ ...RULES_VUE_STYLE,
23
+ ...RULES_VUE_SUSPICIOUS
24
+ };
25
+
26
+ export { RULES_VUE, RULES_VUE_CORRECTNESS, RULES_VUE_RESTRICTION, RULES_VUE_STYLE, RULES_VUE_SUSPICIOUS };
27
+ //# sourceMappingURL=vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue.mjs","names":[],"sources":["../../../../src/presets/vue/rules/vue.ts"],"sourcesContent":["/**\n * No lint rules have been configured for Options API.\n */\n\nimport type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_VUE_CORRECTNESS = {\n \"vue/no-export-in-script-setup\": \"error\",\n \"vue/no-expose-after-await\": \"error\",\n \"vue/no-watch-after-await\": \"error\",\n \"vue/valid-define-emits\": \"error\",\n \"vue/valid-define-options\": \"error\",\n \"vue/valid-define-props\": \"error\",\n \"vue/valid-next-tick\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE_RESTRICTION = {\n \"vue/no-import-compiler-macros\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE_STYLE = {\n \"vue/define-emits-declaration\": [\n \"error\",\n \"type-based\",\n ],\n \"vue/define-props-declaration\": [\n \"error\",\n \"type-based\",\n ],\n \"vue/define-props-destructuring\": [\n \"error\",\n {\n destructure: \"never\",\n },\n ],\n \"vue/next-tick-style\": [\n \"error\",\n \"promise\",\n ],\n \"vue/require-typed-ref\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE_SUSPICIOUS = {\n \"vue/no-required-prop-with-default\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_VUE = {\n ...RULES_VUE_CORRECTNESS,\n ...RULES_VUE_RESTRICTION,\n ...RULES_VUE_STYLE,\n ...RULES_VUE_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_VUE,\n RULES_VUE_CORRECTNESS,\n RULES_VUE_RESTRICTION,\n RULES_VUE_STYLE,\n RULES_VUE_SUSPICIOUS,\n};\n"],"mappings":"AAMA,MAAM,wBAAwB;CAC1B,iCAAiC;CACjC,6BAA6B;CAC7B,4BAA4B;CAC5B,0BAA0B;CAC1B,4BAA4B;CAC5B,0BAA0B;CAC1B,uBAAuB;AAC3B;AAEA,MAAM,wBAAwB,EAC1B,iCAAiC,QACrC;AAEA,MAAM,kBAAkB;CACpB,gCAAgC,CAC5B,SACA,YACJ;CACA,gCAAgC,CAC5B,SACA,YACJ;CACA,kCAAkC,CAC9B,SACA,EACI,aAAa,QACjB,CACJ;CACA,uBAAuB,CACnB,SACA,SACJ;CACA,yBAAyB;AAC7B;AAEA,MAAM,uBAAuB,EACzB,qCAAqC,QACzC;AAEA,MAAM,YAAY;CACd,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apst/oxlint",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "A shareable Oxlint configuration",
5
5
  "keywords": [
6
6
  "oxlint",
@@ -30,45 +30,15 @@
30
30
  "import": "./dist/index.mjs",
31
31
  "require": "./dist/index.js"
32
32
  },
33
- "./constants/default": {
34
- "types": "./dist/constants/default.d.ts",
35
- "import": "./dist/constants/default.mjs",
36
- "require": "./dist/constants/default.js"
33
+ "./constants/*": {
34
+ "types": "./dist/constants/*.d.ts",
35
+ "import": "./dist/constants/*.mjs",
36
+ "require": "./dist/constants/*.js"
37
37
  },
38
- "./constants/ignore-patterns": {
39
- "types": "./dist/constants/ignore-patterns.d.ts",
40
- "import": "./dist/constants/ignore-patterns.mjs",
41
- "require": "./dist/constants/ignore-patterns.js"
42
- },
43
- "./presets/common": {
44
- "types": "./dist/presets/common/index.d.ts",
45
- "import": "./dist/presets/common/index.mjs",
46
- "require": "./dist/presets/common/index.js"
47
- },
48
- "./presets/node": {
49
- "types": "./dist/presets/node/index.d.ts",
50
- "import": "./dist/presets/node/index.mjs",
51
- "require": "./dist/presets/node/index.js"
52
- },
53
- "./presets/jsx": {
54
- "types": "./dist/presets/jsx/index.d.ts",
55
- "import": "./dist/presets/jsx/index.mjs",
56
- "require": "./dist/presets/jsx/index.js"
57
- },
58
- "./presets/react": {
59
- "types": "./dist/presets/react/index.d.ts",
60
- "import": "./dist/presets/react/index.mjs",
61
- "require": "./dist/presets/react/index.js"
62
- },
63
- "./presets/next": {
64
- "types": "./dist/presets/next/index.d.ts",
65
- "import": "./dist/presets/next/index.mjs",
66
- "require": "./dist/presets/next/index.js"
67
- },
68
- "./presets/vitest": {
69
- "types": "./dist/presets/vitest/index.d.ts",
70
- "import": "./dist/presets/vitest/index.mjs",
71
- "require": "./dist/presets/vitest/index.js"
38
+ "./presets/*": {
39
+ "types": "./dist/presets/*/index.d.ts",
40
+ "import": "./dist/presets/*/index.mjs",
41
+ "require": "./dist/presets/*/index.js"
72
42
  },
73
43
  "./package.json": "./package.json"
74
44
  },
@@ -82,10 +52,10 @@
82
52
  "es-toolkit": "^1.40.0"
83
53
  },
84
54
  "devDependencies": {
85
- "oxlint": "1.45.0"
55
+ "oxlint": "1.70.0"
86
56
  },
87
57
  "peerDependencies": {
88
- "oxlint": "^1.45.0"
58
+ "oxlint": "^1.70.0"
89
59
  },
90
60
  "peerDependenciesMeta": {
91
61
  "oxlint": {