@luxass/eslint-config 4.0.0-beta.9 → 4.0.1

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 (149) hide show
  1. package/README.md +351 -48
  2. package/dist/{chunk-TQ476NL2.mjs → chunk-4YBQZLPS.mjs} +13 -2
  3. package/dist/{chunk-NDNDG7BH.mjs → chunk-5NK24IKQ.mjs} +2 -5
  4. package/dist/{chunk-2SW2E3TH.mjs → chunk-5SDSWPKR.mjs} +14 -4
  5. package/dist/chunk-6T7MXPCT.mjs +17 -0
  6. package/dist/{chunk-SPQZTV4E.mjs → chunk-7R4FYLS2.mjs} +19 -14
  7. package/dist/{chunk-ADP4MYOS.mjs → chunk-ANUYBAYV.mjs} +1 -1
  8. package/dist/{chunk-R4NSLRAE.mjs → chunk-ATRL3UZP.mjs} +14 -8
  9. package/dist/{chunk-P3N5WLFL.mjs → chunk-BXBN56WI.mjs} +11 -7
  10. package/dist/chunk-CJ3ZUYUJ.mjs +183 -0
  11. package/dist/chunk-DAJA5AV3.mjs +29 -0
  12. package/dist/{chunk-FK567E7G.mjs → chunk-DVQQVCGF.mjs} +7 -3
  13. package/dist/chunk-FU5SRKZU.mjs +104 -0
  14. package/dist/{chunk-LQLF2CMA.mjs → chunk-GBLPCM3X.mjs} +14 -17
  15. package/dist/chunk-KJ7ZCBK4.mjs +48 -0
  16. package/dist/{chunk-QZTI72NS.mjs → chunk-PYS26PF3.mjs} +13 -9
  17. package/dist/chunk-Q57BF3CR.mjs +63 -0
  18. package/dist/{chunk-3QHLEAXK.mjs → chunk-RDZJT36Z.mjs} +22 -8
  19. package/dist/chunk-RNFKNSHW.mjs +293 -0
  20. package/dist/{chunk-HE56XDG6.mjs → chunk-RVSUTDCE.mjs} +15 -5
  21. package/dist/chunk-UMUUVFB7.mjs +69 -0
  22. package/dist/{chunk-NUG6FLHN.mjs → chunk-VZ2YFMWH.mjs} +54 -11
  23. package/dist/chunk-WDSV2EFG.mjs +7 -0
  24. package/dist/{chunk-M5WNLLBT.mjs → chunk-WOYZWHPM.mjs} +20 -7
  25. package/dist/chunk-WRURTO5T.mjs +144 -0
  26. package/dist/{chunk-BAKUP7QM.mjs → chunk-Z7F6QSYQ.mjs} +44 -34
  27. package/dist/configs/astro.cjs +11 -21
  28. package/dist/configs/astro.d.cts +3 -6
  29. package/dist/configs/astro.d.ts +3 -6
  30. package/dist/configs/astro.mjs +3 -3
  31. package/dist/configs/comments.cjs +9 -12
  32. package/dist/configs/comments.d.cts +3 -2
  33. package/dist/configs/comments.d.ts +3 -2
  34. package/dist/configs/comments.mjs +1 -2
  35. package/dist/configs/formatters.cjs +274 -0
  36. package/dist/configs/formatters.d.cts +11 -0
  37. package/dist/configs/formatters.d.ts +11 -0
  38. package/dist/configs/formatters.mjs +9 -0
  39. package/dist/configs/ignores.cjs +1 -8
  40. package/dist/configs/ignores.d.cts +3 -2
  41. package/dist/configs/ignores.d.ts +3 -2
  42. package/dist/configs/ignores.mjs +2 -2
  43. package/dist/configs/imports.cjs +35 -9
  44. package/dist/configs/imports.d.cts +13 -4
  45. package/dist/configs/imports.d.ts +13 -4
  46. package/dist/configs/imports.mjs +2 -2
  47. package/dist/configs/index.cjs +1487 -1074
  48. package/dist/configs/index.d.cts +7 -18
  49. package/dist/configs/index.d.ts +7 -18
  50. package/dist/configs/index.mjs +40 -36
  51. package/dist/configs/javascript.cjs +16 -23
  52. package/dist/configs/javascript.d.cts +3 -6
  53. package/dist/configs/javascript.d.ts +3 -6
  54. package/dist/configs/javascript.mjs +2 -3
  55. package/dist/configs/jsdoc.cjs +6 -2
  56. package/dist/configs/jsdoc.d.cts +17 -4
  57. package/dist/configs/jsdoc.d.ts +17 -4
  58. package/dist/configs/jsdoc.mjs +2 -2
  59. package/dist/configs/jsonc.cjs +8 -11
  60. package/dist/configs/jsonc.d.cts +3 -6
  61. package/dist/configs/jsonc.d.ts +3 -6
  62. package/dist/configs/jsonc.mjs +3 -3
  63. package/dist/configs/markdown.cjs +46 -35
  64. package/dist/configs/markdown.d.cts +25 -4
  65. package/dist/configs/markdown.d.ts +25 -4
  66. package/dist/configs/markdown.mjs +3 -3
  67. package/dist/configs/nextjs.cjs +13 -11
  68. package/dist/configs/nextjs.d.cts +3 -6
  69. package/dist/configs/nextjs.d.ts +3 -6
  70. package/dist/configs/nextjs.mjs +3 -3
  71. package/dist/configs/node.cjs +0 -10
  72. package/dist/configs/node.d.cts +3 -2
  73. package/dist/configs/node.d.ts +3 -2
  74. package/dist/configs/node.mjs +1 -2
  75. package/dist/configs/perfectionist.cjs +2 -20
  76. package/dist/configs/perfectionist.d.cts +4 -3
  77. package/dist/configs/perfectionist.d.ts +4 -3
  78. package/dist/configs/perfectionist.mjs +1 -2
  79. package/dist/configs/react.cjs +206 -203
  80. package/dist/configs/react.d.cts +3 -6
  81. package/dist/configs/react.d.ts +3 -6
  82. package/dist/configs/react.mjs +3 -3
  83. package/dist/configs/sort.cjs +6 -6
  84. package/dist/configs/sort.d.cts +3 -2
  85. package/dist/configs/sort.d.ts +3 -2
  86. package/dist/configs/sort.mjs +1 -1
  87. package/dist/configs/stylistic.cjs +20 -11
  88. package/dist/configs/stylistic.d.cts +4 -7
  89. package/dist/configs/stylistic.d.ts +4 -7
  90. package/dist/configs/stylistic.mjs +4 -3
  91. package/dist/configs/tailwindcss.cjs +33 -47
  92. package/dist/configs/tailwindcss.d.cts +3 -6
  93. package/dist/configs/tailwindcss.d.ts +3 -6
  94. package/dist/configs/tailwindcss.mjs +3 -3
  95. package/dist/configs/test.cjs +103 -16
  96. package/dist/configs/test.d.cts +3 -6
  97. package/dist/configs/test.d.ts +3 -6
  98. package/dist/configs/test.mjs +4 -3
  99. package/dist/configs/toml.cjs +131 -0
  100. package/dist/configs/toml.d.cts +11 -0
  101. package/dist/configs/toml.d.ts +11 -0
  102. package/dist/configs/toml.mjs +8 -0
  103. package/dist/configs/typescript.cjs +39 -43
  104. package/dist/configs/typescript.d.cts +3 -6
  105. package/dist/configs/typescript.d.ts +3 -6
  106. package/dist/configs/typescript.mjs +3 -4
  107. package/dist/configs/unicorn.cjs +13 -10
  108. package/dist/configs/unicorn.d.cts +3 -2
  109. package/dist/configs/unicorn.d.ts +3 -2
  110. package/dist/configs/unicorn.mjs +1 -2
  111. package/dist/configs/unocss.cjs +48 -20
  112. package/dist/configs/unocss.d.cts +3 -6
  113. package/dist/configs/unocss.d.ts +3 -6
  114. package/dist/configs/unocss.mjs +3 -3
  115. package/dist/configs/vue.cjs +51 -15
  116. package/dist/configs/vue.d.cts +3 -6
  117. package/dist/configs/vue.d.ts +3 -6
  118. package/dist/configs/vue.mjs +3 -3
  119. package/dist/configs/yaml.cjs +17 -11
  120. package/dist/configs/yaml.d.cts +3 -6
  121. package/dist/configs/yaml.d.ts +3 -6
  122. package/dist/configs/yaml.mjs +3 -3
  123. package/dist/custom-rules/utils.cjs +31 -0
  124. package/dist/custom-rules/utils.d.cts +6 -0
  125. package/dist/custom-rules/utils.d.ts +6 -0
  126. package/dist/custom-rules/utils.mjs +6 -0
  127. package/dist/globs.cjs +157 -0
  128. package/dist/globs.d.cts +28 -0
  129. package/dist/globs.d.ts +28 -0
  130. package/dist/globs.mjs +56 -0
  131. package/dist/index.cjs +1267 -839
  132. package/dist/index.d.cts +10 -44
  133. package/dist/index.d.ts +10 -44
  134. package/dist/index.mjs +106 -146
  135. package/dist/types-spTEGSaV.d.cts +632 -0
  136. package/dist/types-spTEGSaV.d.ts +632 -0
  137. package/package.json +69 -37
  138. package/dist/chunk-24KJPXII.mjs +0 -51
  139. package/dist/chunk-4HH6LYJ6.mjs +0 -25
  140. package/dist/chunk-AL47KNVD.mjs +0 -37
  141. package/dist/chunk-C5VMTRKT.mjs +0 -18
  142. package/dist/chunk-ERFDRAGW.mjs +0 -86
  143. package/dist/chunk-HLDEUDLN.mjs +0 -28
  144. package/dist/chunk-O4O6V7LI.mjs +0 -70
  145. package/dist/chunk-UBPIYSHC.mjs +0 -284
  146. package/dist/types-h9izbkUX.d.cts +0 -241
  147. package/dist/types-h9izbkUX.d.ts +0 -241
  148. package/dist/{chunk-FKAOMYGL.mjs → chunk-ME2OAMS3.mjs} +0 -0
  149. package/dist/{chunk-FOIFEV73.mjs → chunk-XBASVDU6.mjs} +6 -6
@@ -33,13 +33,14 @@ __export(markdown_exports, {
33
33
  markdown: () => markdown
34
34
  });
35
35
  module.exports = __toCommonJS(markdown_exports);
36
+ var parserPlain = __toESM(require("eslint-parser-plain"), 1);
37
+ var import_eslint_merge_processors = require("eslint-merge-processors");
36
38
 
37
39
  // src/globs.ts
38
40
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
39
- var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
40
- var GLOB_JSX_EXT = "[jt]sx";
41
- var GLOB_JSX = `**/*.${GLOB_JSX_EXT}`;
41
+ var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
42
42
  var GLOB_MARKDOWN = "**/*.md";
43
+ var GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
43
44
  var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
44
45
  var GLOB_TESTS = [
45
46
  `**/__tests__/**/*.${GLOB_SRC_EXT}`,
@@ -48,11 +49,6 @@ var GLOB_TESTS = [
48
49
  `**/*.bench.${GLOB_SRC_EXT}`,
49
50
  `**/*.benchmark.${GLOB_SRC_EXT}`
50
51
  ];
51
- var GLOB_NEXTJS_OG = [
52
- `**/app/**/opengraph-image.${GLOB_JSX_EXT}`,
53
- `**/app/**/twitter-image.${GLOB_JSX_EXT}`,
54
- `**/app/**/route.${GLOB_JSX_EXT}`
55
- ];
56
52
  var GLOB_NEXTJS_ROUTES = [
57
53
  `**/app/**/page.${GLOB_SRC_EXT}`,
58
54
  `**/app/**/layout.${GLOB_SRC_EXT}`,
@@ -75,23 +71,43 @@ async function interop(m) {
75
71
 
76
72
  // src/configs/markdown.ts
77
73
  async function markdown(options = {}) {
78
- const { componentExts = [], overrides = {} } = options;
74
+ const {
75
+ exts = [],
76
+ files = [GLOB_MARKDOWN],
77
+ overrides = {}
78
+ } = options;
79
+ const markdown2 = await interop(import("eslint-plugin-markdown"));
79
80
  return [
80
81
  {
81
82
  name: "luxass:markdown:setup",
82
83
  plugins: {
83
- markdown: await interop(import("eslint-plugin-markdown"))
84
+ markdown: markdown2
84
85
  }
85
86
  },
86
87
  {
87
- files: [GLOB_MARKDOWN],
88
88
  name: "luxass:markdown:processor",
89
- processor: "markdown/markdown"
89
+ files,
90
+ ignores: [GLOB_MARKDOWN_IN_MARKDOWN],
91
+ // `eslint-plugin-markdown` only creates virtual files for code blocks,
92
+ // but not the markdown file itself. We use `eslint-merge-processors` to
93
+ // add a pass-through processor for the markdown file itself.
94
+ processor: (0, import_eslint_merge_processors.mergeProcessors)([
95
+ markdown2.processors.markdown,
96
+ import_eslint_merge_processors.processorPassThrough
97
+ ])
90
98
  },
91
99
  {
100
+ name: "luxass:markdown:parser",
101
+ files,
102
+ languageOptions: {
103
+ parser: parserPlain
104
+ }
105
+ },
106
+ {
107
+ name: "luxass:markdown:disables",
92
108
  files: [
93
109
  GLOB_MARKDOWN_CODE,
94
- ...componentExts.map((ext) => `${GLOB_MARKDOWN}/**/*.${ext}`)
110
+ ...exts.map((ext) => `${GLOB_MARKDOWN}/**/*.${ext}`)
95
111
  ],
96
112
  languageOptions: {
97
113
  parserOptions: {
@@ -100,10 +116,7 @@ async function markdown(options = {}) {
100
116
  }
101
117
  }
102
118
  },
103
- name: "luxass:markdown:rules",
104
119
  rules: {
105
- "antfu/no-cjs-exports": "off",
106
- "antfu/no-ts-export-equal": "off",
107
120
  "import/newline-after-import": "off",
108
121
  "no-alert": "off",
109
122
  "no-console": "off",
@@ -113,35 +126,33 @@ async function markdown(options = {}) {
113
126
  "node/prefer-global/process": "off",
114
127
  "style/comma-dangle": "off",
115
128
  "style/eol-last": "off",
129
+ // Type aware rules
130
+ "ts/await-thenable": "off",
116
131
  "ts/consistent-type-imports": "off",
132
+ "ts/dot-notation": "off",
133
+ "ts/no-floating-promises": "off",
134
+ "ts/no-for-in-array": "off",
135
+ "ts/no-implied-eval": "off",
136
+ "ts/no-misused-promises": "off",
117
137
  "ts/no-namespace": "off",
118
138
  "ts/no-redeclare": "off",
119
139
  "ts/no-require-imports": "off",
140
+ "ts/no-throw-literal": "off",
141
+ "ts/no-unnecessary-type-assertion": "off",
142
+ "ts/no-unsafe-argument": "off",
143
+ "ts/no-unsafe-assignment": "off",
144
+ "ts/no-unsafe-call": "off",
145
+ "ts/no-unsafe-member-access": "off",
146
+ "ts/no-unsafe-return": "off",
120
147
  "ts/no-unused-vars": "off",
121
148
  "ts/no-use-before-define": "off",
122
149
  "ts/no-var-requires": "off",
150
+ "ts/restrict-plus-operands": "off",
151
+ "ts/restrict-template-expressions": "off",
152
+ "ts/unbound-method": "off",
123
153
  "unicode-bom": "off",
124
154
  "unused-imports/no-unused-imports": "off",
125
155
  "unused-imports/no-unused-vars": "off",
126
- // Type aware rules
127
- ...{
128
- "ts/await-thenable": "off",
129
- "ts/dot-notation": "off",
130
- "ts/no-floating-promises": "off",
131
- "ts/no-for-in-array": "off",
132
- "ts/no-implied-eval": "off",
133
- "ts/no-misused-promises": "off",
134
- "ts/no-throw-literal": "off",
135
- "ts/no-unnecessary-type-assertion": "off",
136
- "ts/no-unsafe-argument": "off",
137
- "ts/no-unsafe-assignment": "off",
138
- "ts/no-unsafe-call": "off",
139
- "ts/no-unsafe-member-access": "off",
140
- "ts/no-unsafe-return": "off",
141
- "ts/restrict-plus-operands": "off",
142
- "ts/restrict-template-expressions": "off",
143
- "ts/unbound-method": "off"
144
- },
145
156
  ...overrides
146
157
  }
147
158
  }
@@ -1,6 +1,5 @@
1
- import { a as OptionsComponentExts, O as OverrideOptions, F as FlatConfigItem } from '../types-h9izbkUX.cjs';
1
+ import { k as FlatConfigItem } from '../types-spTEGSaV.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,7 +7,29 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
11
12
 
12
- declare function markdown(options?: OptionsComponentExts & OverrideOptions): Promise<FlatConfigItem[]>;
13
+ interface MarkdownOptions {
14
+ /**
15
+ * Override rules.
16
+ */
17
+ overrides?: FlatConfigItem["rules"];
18
+ /**
19
+ * Additional extensions for components.
20
+ *
21
+ * @example ["vue"]
22
+ * @default []
23
+ */
24
+ exts?: string[];
25
+ /**
26
+ * Glob patterns for Markdown files.
27
+ *
28
+ * @default [GLOB_MARKDOWN]
29
+ * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
30
+ */
31
+ files?: string[];
32
+ }
33
+ declare function markdown(options?: MarkdownOptions): Promise<FlatConfigItem[]>;
13
34
 
14
- export { markdown };
35
+ export { type MarkdownOptions, markdown };
@@ -1,6 +1,5 @@
1
- import { a as OptionsComponentExts, O as OverrideOptions, F as FlatConfigItem } from '../types-h9izbkUX.js';
1
+ import { k as FlatConfigItem } from '../types-spTEGSaV.js';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,7 +7,29 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
11
12
 
12
- declare function markdown(options?: OptionsComponentExts & OverrideOptions): Promise<FlatConfigItem[]>;
13
+ interface MarkdownOptions {
14
+ /**
15
+ * Override rules.
16
+ */
17
+ overrides?: FlatConfigItem["rules"];
18
+ /**
19
+ * Additional extensions for components.
20
+ *
21
+ * @example ["vue"]
22
+ * @default []
23
+ */
24
+ exts?: string[];
25
+ /**
26
+ * Glob patterns for Markdown files.
27
+ *
28
+ * @default [GLOB_MARKDOWN]
29
+ * @see https://github.com/luxass/eslint-config/blob/ba9952eeb0737ff96444b1aa814e2a35b3cf2c74/src/globs.ts#L30
30
+ */
31
+ files?: string[];
32
+ }
33
+ declare function markdown(options?: MarkdownOptions): Promise<FlatConfigItem[]>;
13
34
 
14
- export { markdown };
35
+ export { type MarkdownOptions, markdown };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  markdown
3
- } from "../chunk-ERFDRAGW.mjs";
4
- import "../chunk-R4NSLRAE.mjs";
5
- import "../chunk-TQ476NL2.mjs";
3
+ } from "../chunk-FU5SRKZU.mjs";
4
+ import "../chunk-4YBQZLPS.mjs";
5
+ import "../chunk-ATRL3UZP.mjs";
6
6
  export {
7
7
  markdown
8
8
  };
@@ -36,9 +36,7 @@ module.exports = __toCommonJS(nextjs_exports);
36
36
 
37
37
  // src/globs.ts
38
38
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
39
- var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
40
- var GLOB_JSX_EXT = "[jt]sx";
41
- var GLOB_JSX = `**/*.${GLOB_JSX_EXT}`;
39
+ var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
42
40
  var GLOB_MARKDOWN = "**/*.md";
43
41
  var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
44
42
  var GLOB_TESTS = [
@@ -49,9 +47,9 @@ var GLOB_TESTS = [
49
47
  `**/*.benchmark.${GLOB_SRC_EXT}`
50
48
  ];
51
49
  var GLOB_NEXTJS_OG = [
52
- `**/app/**/opengraph-image.${GLOB_JSX_EXT}`,
53
- `**/app/**/twitter-image.${GLOB_JSX_EXT}`,
54
- `**/app/**/route.${GLOB_JSX_EXT}`
50
+ `**/app/**/opengraph-image.[jt]s?(x)`,
51
+ `**/app/**/twitter-image.[jt]s?(x)`,
52
+ `**/app/**/route.[jt]s?(x)`
55
53
  ];
56
54
  var GLOB_NEXTJS_ROUTES = [
57
55
  `**/app/**/page.${GLOB_SRC_EXT}`,
@@ -85,8 +83,8 @@ async function ensure(packages) {
85
83
  const { default: prompts } = await import("prompts");
86
84
  const { result } = await prompts([
87
85
  {
88
- message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?`,
89
86
  name: "result",
87
+ message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?`,
90
88
  type: "confirm"
91
89
  }
92
90
  ]);
@@ -100,7 +98,11 @@ async function ensure(packages) {
100
98
 
101
99
  // src/configs/nextjs.ts
102
100
  async function nextjs(options = {}) {
103
- const { overrides, rootDir } = options;
101
+ const {
102
+ files = [GLOB_SRC],
103
+ overrides,
104
+ rootDir
105
+ } = options;
104
106
  await ensure([
105
107
  "@next/eslint-plugin-next"
106
108
  ]);
@@ -113,8 +115,8 @@ async function nextjs(options = {}) {
113
115
  }
114
116
  },
115
117
  {
116
- files: [GLOB_SRC],
117
118
  name: "luxass:nextjs:rules",
119
+ files,
118
120
  rules: {
119
121
  ...pluginNextjs.configs.recommended.rules,
120
122
  ...pluginNextjs.configs["core-web-vitals"].rules,
@@ -153,16 +155,16 @@ async function nextjs(options = {}) {
153
155
  }
154
156
  },
155
157
  {
156
- files: GLOB_NEXTJS_ROUTES,
157
158
  name: "luxass:nextjs:default-export-override",
159
+ files: GLOB_NEXTJS_ROUTES,
158
160
  rules: {
159
161
  "import/prefer-default-export": "error",
160
162
  "react-refresh/only-export-components": "off"
161
163
  }
162
164
  },
163
165
  {
164
- files: GLOB_NEXTJS_OG,
165
166
  name: "luxass:nextjs:og-override",
167
+ files: GLOB_NEXTJS_OG,
166
168
  rules: {
167
169
  "@next/next/no-img-element": "off",
168
170
  "react/no-unknown-property": ["error", {
@@ -1,6 +1,5 @@
1
- import { N as NextJSOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-h9izbkUX.cjs';
1
+ export { N as NextJSOptions, n as nextjs } from '../types-spTEGSaV.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,7 +7,5 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
11
-
12
- declare function nextjs(options?: NextJSOptions & OverrideOptions): Promise<FlatConfigItem[]>;
13
-
14
- export { nextjs };
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
@@ -1,6 +1,5 @@
1
- import { N as NextJSOptions, O as OverrideOptions, F as FlatConfigItem } from '../types-h9izbkUX.js';
1
+ export { N as NextJSOptions, n as nextjs } from '../types-spTEGSaV.js';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,7 +7,5 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
11
-
12
- declare function nextjs(options?: NextJSOptions & OverrideOptions): Promise<FlatConfigItem[]>;
13
-
14
- export { nextjs };
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  nextjs
3
- } from "../chunk-QZTI72NS.mjs";
4
- import "../chunk-R4NSLRAE.mjs";
5
- import "../chunk-TQ476NL2.mjs";
3
+ } from "../chunk-PYS26PF3.mjs";
4
+ import "../chunk-4YBQZLPS.mjs";
5
+ import "../chunk-ATRL3UZP.mjs";
6
6
  export {
7
7
  nextjs
8
8
  };
@@ -33,17 +33,7 @@ __export(node_exports, {
33
33
  node: () => node
34
34
  });
35
35
  module.exports = __toCommonJS(node_exports);
36
-
37
- // src/plugins.ts
38
- var import_eslint_plugin_antfu = __toESM(require("eslint-plugin-antfu"), 1);
39
- var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
40
- var pluginImport = __toESM(require("eslint-plugin-i"), 1);
41
36
  var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
42
- var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
43
- var import_eslint_plugin_unused_imports = __toESM(require("eslint-plugin-unused-imports"), 1);
44
- var import_eslint_plugin_perfectionist = __toESM(require("eslint-plugin-perfectionist"), 1);
45
-
46
- // src/configs/node.ts
47
37
  function node() {
48
38
  return [
49
39
  {
@@ -1,6 +1,5 @@
1
- import { F as FlatConfigItem } from '../types-h9izbkUX.cjs';
1
+ import { k as FlatConfigItem } from '../types-spTEGSaV.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,6 +7,8 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
11
12
 
12
13
  declare function node(): FlatConfigItem[];
13
14
 
@@ -1,6 +1,5 @@
1
- import { F as FlatConfigItem } from '../types-h9izbkUX.js';
1
+ import { k as FlatConfigItem } from '../types-spTEGSaV.js';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,6 +7,8 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
11
12
 
12
13
  declare function node(): FlatConfigItem[];
13
14
 
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  node
3
- } from "../chunk-NDNDG7BH.mjs";
4
- import "../chunk-C5VMTRKT.mjs";
3
+ } from "../chunk-5NK24IKQ.mjs";
5
4
  export {
6
5
  node
7
6
  };
@@ -33,33 +33,15 @@ __export(perfectionist_exports, {
33
33
  perfectionist: () => perfectionist
34
34
  });
35
35
  module.exports = __toCommonJS(perfectionist_exports);
36
-
37
- // src/plugins.ts
38
- var import_eslint_plugin_antfu = __toESM(require("eslint-plugin-antfu"), 1);
39
- var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
40
- var pluginImport = __toESM(require("eslint-plugin-i"), 1);
41
- var import_eslint_plugin_n = __toESM(require("eslint-plugin-n"), 1);
42
- var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
43
- var import_eslint_plugin_unused_imports = __toESM(require("eslint-plugin-unused-imports"), 1);
44
36
  var import_eslint_plugin_perfectionist = __toESM(require("eslint-plugin-perfectionist"), 1);
45
-
46
- // src/configs/perfectionist.ts
47
- async function perfectionist(options = {}) {
48
- const { enableAllRules = false } = options;
37
+ async function perfectionist() {
49
38
  return [
50
39
  {
51
40
  name: "luxass:perfectionist",
52
41
  plugins: {
53
42
  perfectionist: import_eslint_plugin_perfectionist.default
54
43
  },
55
- rules: {
56
- ...enableAllRules ? {
57
- ...import_eslint_plugin_perfectionist.default.configs["recommended-natural"].rules,
58
- "perfectionist/sort-imports": "off",
59
- // TODO: This rule should probably be enabled in favor of import/order?
60
- "perfectionist/sort-vue-attributes": "off"
61
- } : {}
62
- }
44
+ rules: {}
63
45
  }
64
46
  ];
65
47
  }
@@ -1,6 +1,5 @@
1
- import { P as PerfectionistOptions, F as FlatConfigItem } from '../types-h9izbkUX.cjs';
1
+ import { k as FlatConfigItem } from '../types-spTEGSaV.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,12 +7,14 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
11
12
 
12
13
  /**
13
14
  * Optional perfectionist plugin for props and items sorting.
14
15
  *
15
16
  * @see https://github.com/azat-io/eslint-plugin-perfectionist
16
17
  */
17
- declare function perfectionist(options?: PerfectionistOptions): Promise<FlatConfigItem[]>;
18
+ declare function perfectionist(): Promise<FlatConfigItem[]>;
18
19
 
19
20
  export { perfectionist };
@@ -1,6 +1,5 @@
1
- import { P as PerfectionistOptions, F as FlatConfigItem } from '../types-h9izbkUX.js';
1
+ import { k as FlatConfigItem } from '../types-spTEGSaV.js';
2
2
  import 'eslint-config-flat-gitignore';
3
- import '@typescript-eslint/parser';
4
3
  import '@antfu/eslint-define-config';
5
4
  import '@eslint-types/jsdoc/types';
6
5
  import '@eslint-types/typescript-eslint/types';
@@ -8,12 +7,14 @@ import '@eslint-types/unicorn/types';
8
7
  import 'eslint-plugin-antfu';
9
8
  import '@stylistic/eslint-plugin';
10
9
  import 'eslint';
10
+ import '@typescript-eslint/parser';
11
+ import 'eslint-processor-vue-blocks';
11
12
 
12
13
  /**
13
14
  * Optional perfectionist plugin for props and items sorting.
14
15
  *
15
16
  * @see https://github.com/azat-io/eslint-plugin-perfectionist
16
17
  */
17
- declare function perfectionist(options?: PerfectionistOptions): Promise<FlatConfigItem[]>;
18
+ declare function perfectionist(): Promise<FlatConfigItem[]>;
18
19
 
19
20
  export { perfectionist };
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  perfectionist
3
- } from "../chunk-HLDEUDLN.mjs";
4
- import "../chunk-C5VMTRKT.mjs";
3
+ } from "../chunk-6T7MXPCT.mjs";
5
4
  export {
6
5
  perfectionist
7
6
  };