@luxass/eslint-config 4.0.1 → 4.2.0-beta.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/README.md +0 -3
  2. package/dist/chunk-C5YCKPY4.mjs +274 -0
  3. package/dist/{chunk-VZ2YFMWH.mjs → chunk-C67L5T23.mjs} +5 -2
  4. package/dist/{chunk-7R4FYLS2.mjs → chunk-K6TLNQJF.mjs} +1 -4
  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 +5 -6
  16. package/dist/configs/index.d.cts +1 -1
  17. package/dist/configs/index.d.ts +1 -1
  18. package/dist/configs/index.mjs +5 -5
  19. package/dist/configs/javascript.cjs +1 -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.d.cts +1 -1
  36. package/dist/configs/react.d.ts +1 -1
  37. package/dist/configs/solid.cjs +360 -0
  38. package/dist/configs/solid.d.cts +11 -0
  39. package/dist/configs/solid.d.ts +11 -0
  40. package/dist/configs/solid.mjs +8 -0
  41. package/dist/configs/sort.d.cts +1 -1
  42. package/dist/configs/sort.d.ts +1 -1
  43. package/dist/configs/stylistic.d.cts +1 -1
  44. package/dist/configs/stylistic.d.ts +1 -1
  45. package/dist/configs/tailwindcss.d.cts +1 -1
  46. package/dist/configs/tailwindcss.d.ts +1 -1
  47. package/dist/configs/test.d.cts +1 -1
  48. package/dist/configs/test.d.ts +1 -1
  49. package/dist/configs/toml.d.cts +1 -1
  50. package/dist/configs/toml.d.ts +1 -1
  51. package/dist/configs/typescript.d.cts +1 -1
  52. package/dist/configs/typescript.d.ts +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 +293 -14
  64. package/dist/index.d.cts +2 -2
  65. package/dist/index.d.ts +2 -2
  66. package/dist/index.mjs +34 -13
  67. package/dist/{types-spTEGSaV.d.cts → types-A-NO9UF1.d.cts} +52 -16
  68. package/dist/{types-spTEGSaV.d.ts → types-A-NO9UF1.d.ts} +52 -16
  69. package/package.json +29 -21
@@ -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
  }
@@ -234,20 +234,20 @@ interface ReactOptions {
234
234
  /**
235
235
  * Enable TypeScript support.
236
236
  *
237
- * @default false
237
+ * @default true
238
238
  */
239
239
  typescript?: boolean;
240
240
  /**
241
- * Enable React A11y support.
241
+ * Enable JSX A11y support.
242
242
  *
243
- * @default true
243
+ * @default false
244
244
  */
245
245
  a11y?: boolean;
246
246
  /**
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,12 +454,39 @@ 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
  }
461
461
  declare function toml(options?: TOMLOptions): Promise<FlatConfigItem[]>;
462
462
 
463
+ interface SolidOptions {
464
+ /**
465
+ * Override rules.
466
+ */
467
+ overrides?: FlatConfigItem["rules"];
468
+ /**
469
+ * Enable TypeScript support.
470
+ *
471
+ * @default true
472
+ */
473
+ typescript?: boolean;
474
+ /**
475
+ * Enable JSX A11y support.
476
+ *
477
+ * @default false
478
+ */
479
+ a11y?: boolean;
480
+ /**
481
+ * Glob patterns for JSX & TSX files.
482
+ *
483
+ * @default [GLOB_JSX, GLOB_TSX]
484
+ * @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
485
+ */
486
+ files?: string[];
487
+ }
488
+ declare function solid(options?: SolidOptions): Promise<FlatConfigItem[]>;
489
+
463
490
  type WrapRuleConfig<T extends {
464
491
  [key: string]: any;
465
492
  }> = {
@@ -627,6 +654,15 @@ interface ConfigOptions {
627
654
  * @default []
628
655
  */
629
656
  exts?: string[];
657
+ /**
658
+ * Enable Solid support.
659
+ *
660
+ * Requires installing:
661
+ * - `eslint-plugin-solid`
662
+ *
663
+ * @default false
664
+ */
665
+ solid?: boolean | SolidOptions;
630
666
  }
631
667
 
632
- export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j, type FlatConfigItem as k, type Awaitable as l, type UserConfigItem as m, nextjs as n, StylisticConfigDefaults as o, type TOMLOptions as p, toml as q, react as r, stylistic as s, typescript as t, unocss as u, vue as v, yaml as y };
668
+ export { type AstroOptions as A, type ConfigOptions as C, type FormattersOptions as F, type JavaScriptOptions as J, type NextJSOptions as N, type ReactOptions as R, type StylisticConfig as S, type TypeScriptOptions as T, type UnoCSSOptions as U, type VueOptions as V, type YAMLOptions as Y, jsonc as a, type JSONOptions as b, type StylisticOptions as c, test as d, type TestOptions as e, astro as f, tailwindcss as g, type TailwindCSSOptions as h, formatters as i, javascript as j, type FlatConfigItem as k, type Awaitable as l, type UserConfigItem as m, nextjs as n, StylisticConfigDefaults as o, type TOMLOptions as p, toml as q, react as r, stylistic as s, typescript as t, unocss as u, vue as v, type SolidOptions as w, solid as x, yaml as y };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxass/eslint-config",
3
- "version": "4.0.1",
3
+ "version": "4.2.0-beta.0",
4
4
  "description": "ESLint config for @luxass",
5
5
  "type": "module",
6
6
  "author": {
@@ -8,7 +8,7 @@
8
8
  "email": "lucasnrgaard@gmail.com",
9
9
  "url": "https://luxass.dev"
10
10
  },
11
- "packageManager": "pnpm@8.12.1",
11
+ "packageManager": "pnpm@8.14.0",
12
12
  "license": "MIT",
13
13
  "repository": {
14
14
  "type": "git",
@@ -89,7 +89,9 @@
89
89
  "eslint-plugin-react": ">=7.33.2",
90
90
  "eslint-plugin-react-hooks": ">=4.6.0",
91
91
  "eslint-plugin-react-refresh": ">=0.4",
92
- "eslint-plugin-tailwindcss": ">=3.13.0"
92
+ "eslint-plugin-solid": ">=0.13.0",
93
+ "eslint-plugin-tailwindcss": ">=3.13.0",
94
+ "eslint-plugin-vuejs-accessibility": ">=2.2.0"
93
95
  },
94
96
  "peerDependenciesMeta": {
95
97
  "@unocss/eslint-plugin": {
@@ -112,29 +114,34 @@
112
114
  },
113
115
  "eslint-plugin-tailwindcss": {
114
116
  "optional": true
117
+ },
118
+ "eslint-plugin-vuejs-accessibility": {
119
+ "optional": true
120
+ },
121
+ "eslint-plugin-solid": {
122
+ "optional": true
115
123
  }
116
124
  },
117
125
  "dependencies": {
118
126
  "@antfu/eslint-define-config": "^1.23.0-2",
119
127
  "@antfu/install-pkg": "^0.3.1",
120
128
  "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
121
- "@eslint-types/jsdoc": "46.9.0",
122
- "@eslint-types/typescript-eslint": "^6.12.0",
123
- "@eslint-types/unicorn": "^49.0.0",
124
- "@stylistic/eslint-plugin": "^1.5.1",
125
- "@typescript-eslint/eslint-plugin": "^6.16.0",
126
- "@typescript-eslint/parser": "^6.16.0",
129
+ "@eslint-types/jsdoc": "^47.0.2",
130
+ "@eslint-types/typescript-eslint": "^6.17.0",
131
+ "@eslint-types/unicorn": "^50.0.1",
132
+ "@stylistic/eslint-plugin": "^1.5.3",
133
+ "@typescript-eslint/eslint-plugin": "^6.18.1",
134
+ "@typescript-eslint/parser": "^6.18.1",
127
135
  "eslint-config-flat-gitignore": "^0.1.2",
128
136
  "eslint-merge-processors": "^0.1.0",
129
137
  "eslint-parser-plain": "^0.1.0",
130
138
  "eslint-plugin-antfu": "^2.1.1",
131
- "eslint-plugin-astro": "^0.31.0",
132
139
  "eslint-plugin-i": "^2.29.1",
133
- "eslint-plugin-jsdoc": "^46.9.1",
140
+ "eslint-plugin-jsdoc": "^48.0.2",
134
141
  "eslint-plugin-jsonc": "^2.11.2",
135
142
  "eslint-plugin-jsx-a11y": "^6.8.0",
136
143
  "eslint-plugin-markdown": "^3.0.1",
137
- "eslint-plugin-n": "^16.5.0",
144
+ "eslint-plugin-n": "^16.6.2",
138
145
  "eslint-plugin-perfectionist": "^2.5.0",
139
146
  "eslint-plugin-sort-keys": "^2.3.5",
140
147
  "eslint-plugin-toml": "^0.8.0",
@@ -142,7 +149,6 @@
142
149
  "eslint-plugin-unused-imports": "^3.0.0",
143
150
  "eslint-plugin-vitest": "^0.3.20",
144
151
  "eslint-plugin-vue": "^9.19.2",
145
- "eslint-plugin-vuejs-accessibility": "^2.2.0",
146
152
  "eslint-plugin-yml": "^1.11.0",
147
153
  "eslint-processor-vue-blocks": "^0.1.1",
148
154
  "globals": "^13.24.0",
@@ -151,32 +157,34 @@
151
157
  "parse-gitignore": "^2.0.0",
152
158
  "prompts": "^2.4.2",
153
159
  "toml-eslint-parser": "^0.9.3",
154
- "vue-eslint-parser": "^9.3.2",
160
+ "vue-eslint-parser": "^9.4.0",
155
161
  "yaml-eslint-parser": "^1.2.2"
156
162
  },
157
163
  "devDependencies": {
158
164
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
159
165
  "@next/eslint-plugin-next": "^14.0.4",
160
- "@stylistic/eslint-plugin-migrate": "^1.5.1",
161
- "@types/eslint": "^8.56.0",
166
+ "@stylistic/eslint-plugin-migrate": "^1.5.3",
167
+ "@types/eslint": "^8.56.1",
162
168
  "@types/estree": "^1.0.5",
163
169
  "@types/node": "^18.17.19",
164
170
  "@types/prompts": "^2.4.9",
165
- "@typescript-eslint/rule-tester": "^6.16.0",
166
- "@typescript-eslint/utils": "^6.16.0",
167
- "@unocss/eslint-plugin": "^0.58.0",
171
+ "@typescript-eslint/rule-tester": "^6.18.1",
172
+ "@typescript-eslint/utils": "^6.18.1",
173
+ "@unocss/eslint-plugin": "^0.58.3",
168
174
  "eslint": "^8.56.0",
169
175
  "eslint-plugin-astro": "^0.31.0",
170
176
  "eslint-plugin-format": "^0.1.0",
171
177
  "eslint-plugin-react": "^7.33.2",
172
178
  "eslint-plugin-react-hooks": "^4.6.0",
173
179
  "eslint-plugin-react-refresh": "^0.4.5",
174
- "eslint-plugin-tailwindcss": "^3.13.0",
180
+ "eslint-plugin-solid": "^0.13.1",
181
+ "eslint-plugin-tailwindcss": "^3.13.1",
182
+ "eslint-plugin-vuejs-accessibility": "^2.2.0",
175
183
  "lint-staged": "^15.2.0",
176
184
  "simple-git-hooks": "^2.9.0",
177
185
  "tsup": "^8.0.1",
178
186
  "typescript": "^5.3.3",
179
- "vitest": "^1.1.0"
187
+ "vitest": "^1.1.3"
180
188
  },
181
189
  "simple-git-hooks": {
182
190
  "pre-commit": "pnpm lint-staged"