@luxass/eslint-config 4.0.0 → 4.1.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 (69) hide show
  1. package/dist/{chunk-VZ2YFMWH.mjs → chunk-C67L5T23.mjs} +5 -2
  2. package/dist/{chunk-QK56GX3F.mjs → chunk-K6TLNQJF.mjs} +8 -4
  3. package/dist/{chunk-DZCXT6HT.mjs → chunk-RNFKNSHW.mjs} +6 -1
  4. package/dist/{chunk-P3QUAOFO.mjs → chunk-Z7F6QSYQ.mjs} +8 -0
  5. package/dist/configs/astro.d.cts +1 -1
  6. package/dist/configs/astro.d.ts +1 -1
  7. package/dist/configs/comments.d.cts +1 -1
  8. package/dist/configs/comments.d.ts +1 -1
  9. package/dist/configs/formatters.d.cts +1 -1
  10. package/dist/configs/formatters.d.ts +1 -1
  11. package/dist/configs/ignores.d.cts +1 -1
  12. package/dist/configs/ignores.d.ts +1 -1
  13. package/dist/configs/imports.d.cts +1 -1
  14. package/dist/configs/imports.d.ts +1 -1
  15. package/dist/configs/index.cjs +25 -7
  16. package/dist/configs/index.d.cts +1 -1
  17. package/dist/configs/index.d.ts +1 -1
  18. package/dist/configs/index.mjs +4 -4
  19. package/dist/configs/javascript.cjs +8 -4
  20. package/dist/configs/javascript.d.cts +1 -1
  21. package/dist/configs/javascript.d.ts +1 -1
  22. package/dist/configs/javascript.mjs +1 -1
  23. package/dist/configs/jsdoc.d.cts +1 -1
  24. package/dist/configs/jsdoc.d.ts +1 -1
  25. package/dist/configs/jsonc.d.cts +1 -1
  26. package/dist/configs/jsonc.d.ts +1 -1
  27. package/dist/configs/markdown.d.cts +2 -2
  28. package/dist/configs/markdown.d.ts +2 -2
  29. package/dist/configs/nextjs.d.cts +1 -1
  30. package/dist/configs/nextjs.d.ts +1 -1
  31. package/dist/configs/node.d.cts +1 -1
  32. package/dist/configs/node.d.ts +1 -1
  33. package/dist/configs/perfectionist.d.cts +1 -1
  34. package/dist/configs/perfectionist.d.ts +1 -1
  35. package/dist/configs/react.cjs +6 -1
  36. package/dist/configs/react.d.cts +1 -1
  37. package/dist/configs/react.d.ts +1 -1
  38. package/dist/configs/react.mjs +1 -1
  39. package/dist/configs/sort.d.cts +1 -1
  40. package/dist/configs/sort.d.ts +1 -1
  41. package/dist/configs/stylistic.d.cts +1 -1
  42. package/dist/configs/stylistic.d.ts +1 -1
  43. package/dist/configs/tailwindcss.d.cts +1 -1
  44. package/dist/configs/tailwindcss.d.ts +1 -1
  45. package/dist/configs/test.d.cts +1 -1
  46. package/dist/configs/test.d.ts +1 -1
  47. package/dist/configs/toml.d.cts +1 -1
  48. package/dist/configs/toml.d.ts +1 -1
  49. package/dist/configs/typescript.cjs +7 -0
  50. package/dist/configs/typescript.d.cts +1 -1
  51. package/dist/configs/typescript.d.ts +1 -1
  52. package/dist/configs/typescript.mjs +1 -1
  53. package/dist/configs/unicorn.d.cts +1 -1
  54. package/dist/configs/unicorn.d.ts +1 -1
  55. package/dist/configs/unocss.d.cts +1 -1
  56. package/dist/configs/unocss.d.ts +1 -1
  57. package/dist/configs/vue.cjs +29 -2
  58. package/dist/configs/vue.d.cts +1 -1
  59. package/dist/configs/vue.d.ts +1 -1
  60. package/dist/configs/vue.mjs +1 -1
  61. package/dist/configs/yaml.d.cts +1 -1
  62. package/dist/configs/yaml.d.ts +1 -1
  63. package/dist/index.cjs +40 -20
  64. package/dist/index.d.cts +2 -2
  65. package/dist/index.d.ts +2 -2
  66. package/dist/index.mjs +15 -13
  67. package/dist/{types-spTEGSaV.d.cts → types-kS9TgR8_.d.cts} +12 -12
  68. package/dist/{types-spTEGSaV.d.ts → types-kS9TgR8_.d.ts} +12 -12
  69. package/package.json +24 -21
@@ -1,5 +1,5 @@
1
1
  import '@typescript-eslint/parser';
2
- export { T as TypeScriptOptions, t as typescript } from '../types-spTEGSaV.cjs';
2
+ export { T as TypeScriptOptions, t as typescript } from '../types-kS9TgR8_.cjs';
3
3
  import 'eslint-config-flat-gitignore';
4
4
  import '@antfu/eslint-define-config';
5
5
  import '@eslint-types/jsdoc/types';
@@ -1,5 +1,5 @@
1
1
  import '@typescript-eslint/parser';
2
- export { T as TypeScriptOptions, t as typescript } from '../types-spTEGSaV.js';
2
+ export { T as TypeScriptOptions, t as typescript } from '../types-kS9TgR8_.js';
3
3
  import 'eslint-config-flat-gitignore';
4
4
  import '@antfu/eslint-define-config';
5
5
  import '@eslint-types/jsdoc/types';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  typescript
3
- } from "../chunk-P3QUAOFO.mjs";
3
+ } from "../chunk-Z7F6QSYQ.mjs";
4
4
  import "../chunk-4YBQZLPS.mjs";
5
5
  import "../chunk-ATRL3UZP.mjs";
6
6
  export {
@@ -1,4 +1,4 @@
1
- import { k as FlatConfigItem } from '../types-spTEGSaV.cjs';
1
+ import { k as FlatConfigItem } from '../types-kS9TgR8_.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,4 +1,4 @@
1
- import { k as FlatConfigItem } from '../types-spTEGSaV.js';
1
+ import { k as FlatConfigItem } from '../types-kS9TgR8_.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,4 +1,4 @@
1
- export { U as UnoCSSOptions, u as unocss } from '../types-spTEGSaV.cjs';
1
+ export { U as UnoCSSOptions, u as unocss } from '../types-kS9TgR8_.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,4 +1,4 @@
1
- export { U as UnoCSSOptions, u as unocss } from '../types-spTEGSaV.js';
1
+ export { U as UnoCSSOptions, u as unocss } from '../types-kS9TgR8_.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -67,15 +67,43 @@ async function interop(m) {
67
67
  const resolved = await m;
68
68
  return resolved.default || resolved;
69
69
  }
70
+ async function ensure(packages) {
71
+ if (import_node_process.default.env.CI || import_node_process.default.stdout.isTTY === false) {
72
+ return;
73
+ }
74
+ ;
75
+ const nonExistingPackages = packages.filter((i) => !(0, import_local_pkg.isPackageExists)(i));
76
+ if (nonExistingPackages.length === 0) {
77
+ return;
78
+ }
79
+ ;
80
+ const { default: prompts } = await import("prompts");
81
+ const { result } = await prompts([
82
+ {
83
+ name: "result",
84
+ message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?`,
85
+ type: "confirm"
86
+ }
87
+ ]);
88
+ if (result) {
89
+ await import("@antfu/install-pkg").then((i) => i.installPackage(nonExistingPackages, {
90
+ dev: true
91
+ }));
92
+ }
93
+ ;
94
+ }
70
95
 
71
96
  // src/configs/vue.ts
72
97
  async function vue(options = {}) {
73
98
  const {
74
- a11y = true,
99
+ a11y = false,
75
100
  files = [GLOB_VUE],
76
101
  overrides = {},
77
102
  stylistic = true
78
103
  } = options;
104
+ if (a11y) {
105
+ await ensure(["eslint-plugin-vuejs-accessibility"]);
106
+ }
79
107
  const [
80
108
  pluginVue,
81
109
  parserVue,
@@ -158,7 +186,6 @@ async function vue(options = {}) {
158
186
  "vue/multi-word-component-names": "off",
159
187
  "vue/no-dupe-keys": "off",
160
188
  "vue/no-empty-pattern": "error",
161
- "vue/no-extra-parens": ["error", "functions"],
162
189
  "vue/no-irregular-whitespace": "error",
163
190
  "vue/no-loss-of-precision": "error",
164
191
  "vue/no-restricted-syntax": [
@@ -1,5 +1,5 @@
1
1
  import 'eslint-processor-vue-blocks';
2
- export { V as VueOptions, v as vue } from '../types-spTEGSaV.cjs';
2
+ export { V as VueOptions, v as vue } from '../types-kS9TgR8_.cjs';
3
3
  import 'eslint-config-flat-gitignore';
4
4
  import '@antfu/eslint-define-config';
5
5
  import '@eslint-types/jsdoc/types';
@@ -1,5 +1,5 @@
1
1
  import 'eslint-processor-vue-blocks';
2
- export { V as VueOptions, v as vue } from '../types-spTEGSaV.js';
2
+ export { V as VueOptions, v as vue } from '../types-kS9TgR8_.js';
3
3
  import 'eslint-config-flat-gitignore';
4
4
  import '@antfu/eslint-define-config';
5
5
  import '@eslint-types/jsdoc/types';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  vue
3
- } from "../chunk-VZ2YFMWH.mjs";
3
+ } from "../chunk-C67L5T23.mjs";
4
4
  import "../chunk-4YBQZLPS.mjs";
5
5
  import "../chunk-ATRL3UZP.mjs";
6
6
  export {
@@ -1,4 +1,4 @@
1
- export { Y as YAMLOptions, y as yaml } from '../types-spTEGSaV.cjs';
1
+ export { Y as YAMLOptions, y as yaml } from '../types-kS9TgR8_.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,4 +1,4 @@
1
- export { Y as YAMLOptions, y as yaml } from '../types-spTEGSaV.js';
1
+ export { Y as YAMLOptions, y as yaml } from '../types-kS9TgR8_.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
package/dist/index.cjs CHANGED
@@ -61,7 +61,7 @@ module.exports = __toCommonJS(src_exports);
61
61
  // src/factory.ts
62
62
  var import_node_process3 = __toESM(require("process"), 1);
63
63
  var import_node_fs = require("fs");
64
- var import_local_pkg2 = require("local-pkg");
64
+ var import_local_pkg3 = require("local-pkg");
65
65
 
66
66
  // src/configs/comments.ts
67
67
  var import_eslint_plugin_eslint_comments = __toESM(require("@eslint-community/eslint-plugin-eslint-comments"), 1);
@@ -576,10 +576,7 @@ async function javascript(options = {}) {
576
576
  "no-class-assign": "error",
577
577
  "no-compare-neg-zero": "error",
578
578
  "no-cond-assign": ["error", "always"],
579
- "no-console": [
580
- editor ? "off" : "error",
581
- { allow: ["warn", "error"] }
582
- ],
579
+ "no-console": ["error", { allow: ["warn", "error"] }],
583
580
  "no-const-assign": "error",
584
581
  "no-control-regex": "error",
585
582
  "no-debugger": "error",
@@ -772,6 +769,13 @@ async function javascript(options = {}) {
772
769
  rules: {
773
770
  "no-console": "off"
774
771
  }
772
+ },
773
+ {
774
+ name: "luxass:playground-overrides",
775
+ files: [`**/playground.${GLOB_SRC_EXT}`],
776
+ rules: {
777
+ "no-console": "off"
778
+ }
775
779
  }
776
780
  ];
777
781
  }
@@ -1270,6 +1274,13 @@ async function typescript(options = {}) {
1270
1274
  "no-unused-expressions": "off"
1271
1275
  }
1272
1276
  },
1277
+ {
1278
+ name: "luxass:typescript:playground-overrides",
1279
+ files: [`**/playground.${GLOB_SRC_EXT}`],
1280
+ rules: {
1281
+ "no-console": "off"
1282
+ }
1283
+ },
1273
1284
  {
1274
1285
  name: "luxass:typescript:javascript-overrides",
1275
1286
  files: ["**/*.js", "**/*.cjs"],
@@ -1285,11 +1296,14 @@ async function typescript(options = {}) {
1285
1296
  var import_eslint_merge_processors2 = require("eslint-merge-processors");
1286
1297
  async function vue(options = {}) {
1287
1298
  const {
1288
- a11y = true,
1299
+ a11y = false,
1289
1300
  files = [GLOB_VUE],
1290
1301
  overrides = {},
1291
1302
  stylistic: stylistic2 = true
1292
1303
  } = options;
1304
+ if (a11y) {
1305
+ await ensure(["eslint-plugin-vuejs-accessibility"]);
1306
+ }
1293
1307
  const [
1294
1308
  pluginVue,
1295
1309
  parserVue,
@@ -1372,7 +1386,6 @@ async function vue(options = {}) {
1372
1386
  "vue/multi-word-component-names": "off",
1373
1387
  "vue/no-dupe-keys": "off",
1374
1388
  "vue/no-empty-pattern": "error",
1375
- "vue/no-extra-parens": ["error", "functions"],
1376
1389
  "vue/no-irregular-whitespace": "error",
1377
1390
  "vue/no-loss-of-precision": "error",
1378
1391
  "vue/no-restricted-syntax": [
@@ -1796,6 +1809,7 @@ async function nextjs(options = {}) {
1796
1809
  }
1797
1810
 
1798
1811
  // src/configs/react.ts
1812
+ var import_local_pkg2 = require("local-pkg");
1799
1813
  async function react(options = {}) {
1800
1814
  const {
1801
1815
  a11y = false,
@@ -1820,6 +1834,9 @@ async function react(options = {}) {
1820
1834
  interop(import("eslint-plugin-react-refresh")),
1821
1835
  ...a11y ? [interop(import("eslint-plugin-jsx-a11y"))] : []
1822
1836
  ]);
1837
+ const isAllowConstantExport = ["vite"].some(
1838
+ (i) => (0, import_local_pkg2.isPackageExists)(i)
1839
+ );
1823
1840
  return [
1824
1841
  {
1825
1842
  name: "luxass:react:setup",
@@ -2055,8 +2072,9 @@ async function react(options = {}) {
2055
2072
  "react-hooks/exhaustive-deps": "warn",
2056
2073
  "react-hooks/rules-of-hooks": "error",
2057
2074
  // react refresh
2058
- "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
2075
+ "react-refresh/only-export-components": ["warn", { allowConstantExport: isAllowConstantExport }],
2059
2076
  ...typescript2 ? {
2077
+ "react/jsx-no-undef": "off",
2060
2078
  "react/prop-type": "off"
2061
2079
  } : {},
2062
2080
  // overrides
@@ -2432,16 +2450,16 @@ async function toml(options = {}) {
2432
2450
  // src/factory.ts
2433
2451
  async function luxass(options = {}, ...userConfigs) {
2434
2452
  const {
2435
- astro: enableAstro = (0, import_local_pkg2.isPackageExists)("astro"),
2453
+ astro: enableAstro = (0, import_local_pkg3.isPackageExists)("astro"),
2436
2454
  editor = !!((import_node_process3.default.env.VSCODE_PID || import_node_process3.default.env.JETBRAINS_IDE || import_node_process3.default.env.VIM) && !import_node_process3.default.env.CI),
2437
2455
  exts = [],
2438
2456
  gitignore: enableGitignore = true,
2439
2457
  nextjs: enableNextJS = false,
2440
2458
  react: enableReact = false,
2441
2459
  tailwindcss: enableTailwindCSS = false,
2442
- typescript: enableTypeScript = (0, import_local_pkg2.isPackageExists)("typescript"),
2460
+ typescript: enableTypeScript = (0, import_local_pkg3.isPackageExists)("typescript"),
2443
2461
  unocss: enableUnoCSS = false,
2444
- vue: enableVue = VUE_PACKAGES.some((i) => (0, import_local_pkg2.isPackageExists)(i))
2462
+ vue: enableVue = VUE_PACKAGES.some((i) => (0, import_local_pkg3.isPackageExists)(i))
2445
2463
  } = options;
2446
2464
  const stylisticOptions = options.stylistic === false ? false : typeof options.stylistic === "object" ? options.stylistic : {};
2447
2465
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
@@ -2480,7 +2498,8 @@ async function luxass(options = {}, ...userConfigs) {
2480
2498
  if (enableTypeScript) {
2481
2499
  configs.push(typescript({
2482
2500
  ...resolveSubOptions(options, "typescript"),
2483
- exts
2501
+ exts,
2502
+ overrides: getOverrides(options, "typescript")
2484
2503
  }));
2485
2504
  }
2486
2505
  if (stylisticOptions) {
@@ -2495,7 +2514,7 @@ async function luxass(options = {}, ...userConfigs) {
2495
2514
  overrides: getOverrides(options, "test")
2496
2515
  }));
2497
2516
  }
2498
- if (enableReact) {
2517
+ if (enableReact || enableNextJS) {
2499
2518
  configs.push(react({
2500
2519
  overrides: getOverrides(options, "react"),
2501
2520
  typescript: !!enableTypeScript
@@ -2504,7 +2523,8 @@ async function luxass(options = {}, ...userConfigs) {
2504
2523
  if (enableNextJS) {
2505
2524
  configs.push(
2506
2525
  nextjs({
2507
- ...resolveSubOptions(options, "nextjs")
2526
+ ...resolveSubOptions(options, "nextjs"),
2527
+ overrides: getOverrides(options, "nextjs")
2508
2528
  })
2509
2529
  );
2510
2530
  }
@@ -2512,6 +2532,7 @@ async function luxass(options = {}, ...userConfigs) {
2512
2532
  configs.push(
2513
2533
  vue({
2514
2534
  ...resolveSubOptions(options, "vue"),
2535
+ overrides: getOverrides(options, "vue"),
2515
2536
  stylistic: stylisticOptions,
2516
2537
  typescript: !!enableTypeScript
2517
2538
  })
@@ -2521,6 +2542,7 @@ async function luxass(options = {}, ...userConfigs) {
2521
2542
  configs.push(
2522
2543
  astro({
2523
2544
  ...resolveSubOptions(options, "astro"),
2545
+ overrides: getOverrides(options, "astro"),
2524
2546
  typescript: !!enableTypeScript
2525
2547
  })
2526
2548
  );
@@ -2561,12 +2583,10 @@ async function luxass(options = {}, ...userConfigs) {
2561
2583
  }
2562
2584
  if (options.markdown ?? true) {
2563
2585
  configs.push(
2564
- markdown(
2565
- {
2566
- exts,
2567
- overrides: getOverrides(options, "markdown")
2568
- }
2569
- )
2586
+ markdown({
2587
+ exts,
2588
+ overrides: getOverrides(options, "markdown")
2589
+ })
2570
2590
  );
2571
2591
  }
2572
2592
  if (options.formatters) {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-spTEGSaV.cjs';
2
- export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-spTEGSaV.cjs';
1
+ import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-kS9TgR8_.cjs';
2
+ export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-kS9TgR8_.cjs';
3
3
  export { comments } from './configs/comments.cjs';
4
4
  export { unicorn } from './configs/unicorn.cjs';
5
5
  export { ignores } from './configs/ignores.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-spTEGSaV.js';
2
- export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-spTEGSaV.js';
1
+ import { C as ConfigOptions, k as FlatConfigItem, l as Awaitable, m as UserConfigItem } from './types-kS9TgR8_.js';
2
+ export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from './types-kS9TgR8_.js';
3
3
  export { comments } from './configs/comments.js';
4
4
  export { unicorn } from './configs/unicorn.js';
5
5
  export { ignores } from './configs/ignores.js';
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-ME2OAMS3.mjs";
5
5
  import {
6
6
  vue
7
- } from "./chunk-VZ2YFMWH.mjs";
7
+ } from "./chunk-C67L5T23.mjs";
8
8
  import {
9
9
  yaml
10
10
  } from "./chunk-WOYZWHPM.mjs";
@@ -21,7 +21,7 @@ import {
21
21
  import "./chunk-WDSV2EFG.mjs";
22
22
  import {
23
23
  typescript
24
- } from "./chunk-P3QUAOFO.mjs";
24
+ } from "./chunk-Z7F6QSYQ.mjs";
25
25
  import {
26
26
  unicorn
27
27
  } from "./chunk-RVSUTDCE.mjs";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-KJ7ZCBK4.mjs";
31
31
  import {
32
32
  javascript
33
- } from "./chunk-QK56GX3F.mjs";
33
+ } from "./chunk-K6TLNQJF.mjs";
34
34
  import {
35
35
  jsdoc
36
36
  } from "./chunk-DVQQVCGF.mjs";
@@ -51,7 +51,7 @@ import {
51
51
  } from "./chunk-6T7MXPCT.mjs";
52
52
  import {
53
53
  react
54
- } from "./chunk-DZCXT6HT.mjs";
54
+ } from "./chunk-RNFKNSHW.mjs";
55
55
  import {
56
56
  astro
57
57
  } from "./chunk-GBLPCM3X.mjs";
@@ -147,7 +147,8 @@ async function luxass(options = {}, ...userConfigs) {
147
147
  if (enableTypeScript) {
148
148
  configs.push(typescript({
149
149
  ...resolveSubOptions(options, "typescript"),
150
- exts
150
+ exts,
151
+ overrides: getOverrides(options, "typescript")
151
152
  }));
152
153
  }
153
154
  if (stylisticOptions) {
@@ -162,7 +163,7 @@ async function luxass(options = {}, ...userConfigs) {
162
163
  overrides: getOverrides(options, "test")
163
164
  }));
164
165
  }
165
- if (enableReact) {
166
+ if (enableReact || enableNextJS) {
166
167
  configs.push(react({
167
168
  overrides: getOverrides(options, "react"),
168
169
  typescript: !!enableTypeScript
@@ -171,7 +172,8 @@ async function luxass(options = {}, ...userConfigs) {
171
172
  if (enableNextJS) {
172
173
  configs.push(
173
174
  nextjs({
174
- ...resolveSubOptions(options, "nextjs")
175
+ ...resolveSubOptions(options, "nextjs"),
176
+ overrides: getOverrides(options, "nextjs")
175
177
  })
176
178
  );
177
179
  }
@@ -179,6 +181,7 @@ async function luxass(options = {}, ...userConfigs) {
179
181
  configs.push(
180
182
  vue({
181
183
  ...resolveSubOptions(options, "vue"),
184
+ overrides: getOverrides(options, "vue"),
182
185
  stylistic: stylisticOptions,
183
186
  typescript: !!enableTypeScript
184
187
  })
@@ -188,6 +191,7 @@ async function luxass(options = {}, ...userConfigs) {
188
191
  configs.push(
189
192
  astro({
190
193
  ...resolveSubOptions(options, "astro"),
194
+ overrides: getOverrides(options, "astro"),
191
195
  typescript: !!enableTypeScript
192
196
  })
193
197
  );
@@ -228,12 +232,10 @@ async function luxass(options = {}, ...userConfigs) {
228
232
  }
229
233
  if (options.markdown ?? true) {
230
234
  configs.push(
231
- markdown(
232
- {
233
- exts,
234
- overrides: getOverrides(options, "markdown")
235
- }
236
- )
235
+ markdown({
236
+ exts,
237
+ overrides: getOverrides(options, "markdown")
238
+ })
237
239
  );
238
240
  }
239
241
  if (options.formatters) {
@@ -53,7 +53,7 @@ interface JSONOptions {
53
53
  * Glob patterns for JSON files.
54
54
  *
55
55
  * @default [GLOB_JSON, GLOB_JSON5, GLOB_JSONC]
56
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
56
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
57
57
  */
58
58
  files?: string[];
59
59
  }
@@ -80,7 +80,7 @@ interface TypeScriptOptions {
80
80
  * Glob patterns for TypeScript files.
81
81
  *
82
82
  * @default GLOB_SRC
83
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
83
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
84
84
  */
85
85
  files?: string[];
86
86
  /**
@@ -120,16 +120,16 @@ interface VueOptions {
120
120
  */
121
121
  sfcBlocks?: boolean | Options;
122
122
  /**
123
- * Enable Vue A11y support.
123
+ * Enable Vue a11y support.
124
124
  *
125
- * @default true
125
+ * @default false
126
126
  */
127
127
  a11y?: boolean;
128
128
  /**
129
129
  * Glob patterns for Vue files.
130
130
  *
131
131
  * @default GLOB_VUE
132
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
132
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
133
133
  */
134
134
  files?: string[];
135
135
  }
@@ -150,7 +150,7 @@ interface YAMLOptions {
150
150
  * Glob patterns for YAML files.
151
151
  *
152
152
  * @default GLOB_YAML
153
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
153
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
154
154
  */
155
155
  files?: string[];
156
156
  }
@@ -167,7 +167,7 @@ interface TestOptions {
167
167
  * Glob patterns for test files.
168
168
  *
169
169
  * @default GLOB_TESTS
170
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
170
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
171
171
  */
172
172
  files?: string[];
173
173
  /**
@@ -194,7 +194,7 @@ interface UnoCSSOptions {
194
194
  * Glob patterns for files that includes unocss classes.
195
195
  *
196
196
  * @default GLOB_SRC
197
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
197
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
198
198
  */
199
199
  files?: string[];
200
200
  /**
@@ -220,7 +220,7 @@ interface NextJSOptions {
220
220
  * Glob patterns for Next.js files.
221
221
  *
222
222
  * @default [GLOB_SRC]
223
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
223
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
224
224
  */
225
225
  files?: string[];
226
226
  }
@@ -247,7 +247,7 @@ interface ReactOptions {
247
247
  * Glob patterns for JSX & TSX files.
248
248
  *
249
249
  * @default [GLOB_JSX, GLOB_TSX]
250
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
250
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
251
251
  */
252
252
  files?: string[];
253
253
  }
@@ -285,7 +285,7 @@ interface TailwindCSSOptions {
285
285
  * Glob patterns for files that includes tailwind classes.
286
286
  *
287
287
  * @default [GLOB_SRC]
288
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
288
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
289
289
  */
290
290
  files?: string[];
291
291
  /**
@@ -454,7 +454,7 @@ interface TOMLOptions {
454
454
  * Glob patterns for TOML files.
455
455
  *
456
456
  * @default [GLOB_TOML]
457
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
457
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
458
458
  */
459
459
  files?: string[];
460
460
  }
@@ -53,7 +53,7 @@ interface JSONOptions {
53
53
  * Glob patterns for JSON files.
54
54
  *
55
55
  * @default [GLOB_JSON, GLOB_JSON5, GLOB_JSONC]
56
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
56
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
57
57
  */
58
58
  files?: string[];
59
59
  }
@@ -80,7 +80,7 @@ interface TypeScriptOptions {
80
80
  * Glob patterns for TypeScript files.
81
81
  *
82
82
  * @default GLOB_SRC
83
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
83
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
84
84
  */
85
85
  files?: string[];
86
86
  /**
@@ -120,16 +120,16 @@ interface VueOptions {
120
120
  */
121
121
  sfcBlocks?: boolean | Options;
122
122
  /**
123
- * Enable Vue A11y support.
123
+ * Enable Vue a11y support.
124
124
  *
125
- * @default true
125
+ * @default false
126
126
  */
127
127
  a11y?: boolean;
128
128
  /**
129
129
  * Glob patterns for Vue files.
130
130
  *
131
131
  * @default GLOB_VUE
132
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
132
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
133
133
  */
134
134
  files?: string[];
135
135
  }
@@ -150,7 +150,7 @@ interface YAMLOptions {
150
150
  * Glob patterns for YAML files.
151
151
  *
152
152
  * @default GLOB_YAML
153
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
153
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
154
154
  */
155
155
  files?: string[];
156
156
  }
@@ -167,7 +167,7 @@ interface TestOptions {
167
167
  * Glob patterns for test files.
168
168
  *
169
169
  * @default GLOB_TESTS
170
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
170
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
171
171
  */
172
172
  files?: string[];
173
173
  /**
@@ -194,7 +194,7 @@ interface UnoCSSOptions {
194
194
  * Glob patterns for files that includes unocss classes.
195
195
  *
196
196
  * @default GLOB_SRC
197
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
197
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
198
198
  */
199
199
  files?: string[];
200
200
  /**
@@ -220,7 +220,7 @@ interface NextJSOptions {
220
220
  * Glob patterns for Next.js files.
221
221
  *
222
222
  * @default [GLOB_SRC]
223
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
223
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
224
224
  */
225
225
  files?: string[];
226
226
  }
@@ -247,7 +247,7 @@ interface ReactOptions {
247
247
  * Glob patterns for JSX & TSX files.
248
248
  *
249
249
  * @default [GLOB_JSX, GLOB_TSX]
250
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
250
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
251
251
  */
252
252
  files?: string[];
253
253
  }
@@ -285,7 +285,7 @@ interface TailwindCSSOptions {
285
285
  * Glob patterns for files that includes tailwind classes.
286
286
  *
287
287
  * @default [GLOB_SRC]
288
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
288
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
289
289
  */
290
290
  files?: string[];
291
291
  /**
@@ -454,7 +454,7 @@ interface TOMLOptions {
454
454
  * Glob patterns for TOML files.
455
455
  *
456
456
  * @default [GLOB_TOML]
457
- * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
457
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
458
458
  */
459
459
  files?: string[];
460
460
  }