@lichthagel/eslint-config 1.0.31 → 1.0.32

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.
@@ -4,7 +4,6 @@ import perfectionst from "eslint-plugin-perfectionist";
4
4
  import stylistic from "@stylistic/eslint-plugin";
5
5
  import ts from "typescript-eslint";
6
6
  import unicornPlugin from "eslint-plugin-unicorn";
7
-
8
7
  //#region src/configs/browser.ts
9
8
  var browser_default = [{
10
9
  name: "lichthagel/browser",
@@ -15,7 +14,6 @@ var browser_default = [{
15
14
  window: "readonly"
16
15
  } }
17
16
  }];
18
-
19
17
  //#endregion
20
18
  //#region src/configs/javascript.ts
21
19
  var javascript_default = [{
@@ -165,7 +163,6 @@ var javascript_default = [{
165
163
  "yoda": "error"
166
164
  }
167
165
  }];
168
-
169
166
  //#endregion
170
167
  //#region src/configs/node.ts
171
168
  const node = async () => {
@@ -182,8 +179,6 @@ const node = async () => {
182
179
  }
183
180
  }];
184
181
  };
185
- var node_default = node;
186
-
187
182
  //#endregion
188
183
  //#region src/configs/perfectionist.ts
189
184
  var perfectionist_default = [{
@@ -223,7 +218,6 @@ var perfectionist_default = [{
223
218
  "sort-imports": "off"
224
219
  }
225
220
  }];
226
-
227
221
  //#endregion
228
222
  //#region src/configs/solid.ts
229
223
  const solid = async (options = {}) => {
@@ -235,8 +229,6 @@ const solid = async (options = {}) => {
235
229
  ...configSolid
236
230
  }];
237
231
  };
238
- var solid_default = solid;
239
-
240
232
  //#endregion
241
233
  //#region src/configs/stylistic.ts
242
234
  var stylistic_default = [{
@@ -317,7 +309,6 @@ var stylistic_default = [{
317
309
  "@stylistic/jsx-self-closing-comp": "error"
318
310
  }
319
311
  }];
320
-
321
312
  //#endregion
322
313
  //#region src/configs/svelte.ts
323
314
  const SVELTE_FILES = ["**/*.svelte"];
@@ -383,8 +374,6 @@ const svelte = async (options = {}) => {
383
374
  }
384
375
  }];
385
376
  };
386
- var svelte_default = svelte;
387
-
388
377
  //#endregion
389
378
  //#region src/configs/tailwindcss.ts
390
379
  const tailwindcss = async () => {
@@ -405,8 +394,6 @@ const tailwindcss = async () => {
405
394
  }
406
395
  }];
407
396
  };
408
- var tailwindcss_default = tailwindcss;
409
-
410
397
  //#endregion
411
398
  //#region src/configs/typescript.ts
412
399
  var typescript_default = [...ts.configs.recommendedTypeChecked, {
@@ -429,7 +416,6 @@ var typescript_default = [...ts.configs.recommendedTypeChecked, {
429
416
  "default-param-last": "off"
430
417
  }
431
418
  }];
432
-
433
419
  //#endregion
434
420
  //#region src/configs/unicorn.ts
435
421
  var unicorn_default = [{
@@ -450,7 +436,6 @@ var unicorn_default = [{
450
436
  "unicorn/prevent-abbreviations": "off"
451
437
  }
452
438
  }];
453
-
454
439
  //#endregion
455
440
  //#region src/factory.ts
456
441
  /**
@@ -460,26 +445,24 @@ var unicorn_default = [{
460
445
  * @returns An array of ESLint flat config items.
461
446
  */
462
447
  const lichthagel = async (options = {}) => {
463
- const { browser = false, node: node$1 = false, solid: solid$1 = false, stylistic: stylistic$1 = true, svelte: svelte$1 = false, tailwindcss: tailwindcss$1 = false, typescript = true,...rest } = options;
448
+ const { browser = false, node: node$1 = false, solid: solid$1 = false, stylistic = true, svelte: svelte$1 = false, tailwindcss: tailwindcss$1 = false, typescript = true, ...rest } = options;
464
449
  if (Object.keys(rest).length > 0) throw new Error(`Unknown options: ${Object.keys(rest).join(", ")}`);
465
450
  const config = [
466
451
  ...javascript_default,
467
452
  ...unicorn_default,
468
453
  ...perfectionist_default
469
454
  ];
470
- if (stylistic$1) config.push(...stylistic_default);
455
+ if (stylistic) config.push(...stylistic_default);
471
456
  if (browser) config.push(...browser_default);
472
- if (node$1) config.push(...await node_default());
457
+ if (node$1) config.push(...await node());
473
458
  if (typescript) config.push(...typescript_default);
474
- if (solid$1) config.push(...await solid_default({ withTypescript: typescript }));
475
- if (svelte$1) config.push(...await svelte_default({
476
- disableStylistic: stylistic$1,
459
+ if (solid$1) config.push(...await solid({ withTypescript: typescript }));
460
+ if (svelte$1) config.push(...await svelte({
461
+ disableStylistic: stylistic,
477
462
  withTypescript: typescript
478
463
  }));
479
- if (tailwindcss$1) config.push(...await tailwindcss_default());
464
+ if (tailwindcss$1) config.push(...await tailwindcss());
480
465
  return config;
481
466
  };
482
- var factory_default = lichthagel;
483
-
484
467
  //#endregion
485
- export { browser_default as browser, factory_default as default, javascript_default as javascript, node_default as node, perfectionist_default as perfectionist, solid_default as solid, stylistic_default as stylistic, svelte_default as svelte, tailwindcss_default as tailwindcss, typescript_default as typescript, unicorn_default as unicorn };
468
+ export { browser_default as browser, lichthagel as default, javascript_default as javascript, node, perfectionist_default as perfectionist, solid, stylistic_default as stylistic, svelte, tailwindcss, typescript_default as typescript, unicorn_default as unicorn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichthagel/eslint-config",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Licht's ESLint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -41,11 +41,11 @@
41
41
  "main": "dist/index.js",
42
42
  "types": "dist/index.d.ts",
43
43
  "dependencies": {
44
- "@eslint/js": "^9.11.1",
44
+ "@eslint/js": "^10.0.0",
45
45
  "@stylistic/eslint-plugin": "^5.0.0",
46
- "eslint-plugin-perfectionist": "^4.0.0",
47
- "eslint-plugin-unicorn": "^61.0.0",
48
- "globals": "^16.0.0",
46
+ "eslint-plugin-perfectionist": "^5.0.0",
47
+ "eslint-plugin-unicorn": "^64.0.0",
48
+ "globals": "^17.0.0",
49
49
  "typescript-eslint": "^8.7.0"
50
50
  },
51
51
  "devDependencies": {
@@ -53,8 +53,8 @@
53
53
  "@commitlint/config-conventional": "^20.0.0",
54
54
  "@commitlint/types": "^20.0.0",
55
55
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
56
- "@types/node": "^22.7.4",
57
- "eslint": "^9.11.1",
56
+ "@types/node": "^24.0.0",
57
+ "eslint": "^10.0.0",
58
58
  "eslint-plugin-n": "^17.10.3",
59
59
  "eslint-plugin-solid": "^0.14.3",
60
60
  "eslint-plugin-svelte": "^3.0.0",
@@ -64,10 +64,10 @@
64
64
  "jiti": "^2.4.2",
65
65
  "lint-staged": "^16.0.0",
66
66
  "svelte": "^5.12.0",
67
- "tsdown": "^0.15.7",
67
+ "tsdown": "^0.21.0",
68
68
  "tsx": "^4.19.1",
69
- "typescript": "^5.6.2",
70
- "vitest": "^3.0.0"
69
+ "typescript": "^6.0.0",
70
+ "vitest": "^4.0.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "eslint": ">=8.40.0",
@@ -91,7 +91,7 @@
91
91
  }
92
92
  },
93
93
  "scripts": {
94
- "build": "pnpm run typegen && tsdown --format esm,cjs --clean --dts",
94
+ "build": "pnpm run typegen && tsdown",
95
95
  "typegen": "tsx scripts/typegen.ts",
96
96
  "watch": "tsdown --format esm,cjs --watch",
97
97
  "test": "vitest",