@lichthagel/eslint-config 1.0.33 → 1.0.35

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.
package/dist/index.mjs CHANGED
@@ -166,7 +166,8 @@ var javascript_default = [{
166
166
  //#endregion
167
167
  //#region src/configs/node.ts
168
168
  const node = async () => {
169
- return [(await import("eslint-plugin-n").then((mod) => mod.default)).configs["flat/recommended-module"], {
169
+ const { default: pluginN } = await import("eslint-plugin-n");
170
+ return [pluginN.configs["flat/recommended-module"], {
170
171
  name: "lichthagel/node",
171
172
  languageOptions: { globals: { ...globals.node } },
172
173
  rules: {
@@ -222,7 +223,7 @@ var perfectionist_default = [{
222
223
  //#region src/configs/solid.ts
223
224
  const solid = async (options = {}) => {
224
225
  const { withTypescript = false } = options;
225
- const configSolid = await import("eslint-plugin-solid/configs/recommended").then((mod) => mod.default);
226
+ const { default: configSolid } = await import("eslint-plugin-solid/configs/recommended");
226
227
  return [{
227
228
  name: "solid/recommended",
228
229
  files: ["**/*.jsx", ...withTypescript ? ["**/*.tsx"] : []],
@@ -314,7 +315,8 @@ var stylistic_default = [{
314
315
  const SVELTE_FILES = ["**/*.svelte"];
315
316
  const svelte = async (options = {}) => {
316
317
  const { disableStylistic = false, withTypescript = false } = options;
317
- return [...(await import("eslint-plugin-svelte").then((mod) => mod.default)).configs["flat/recommended"].map((configItem) => ({
318
+ const { default: pluginSvelte } = await import("eslint-plugin-svelte");
319
+ return [...pluginSvelte.configs["flat/recommended"].map((configItem) => ({
318
320
  name: "svelte/recommended",
319
321
  ...configItem
320
322
  })), {
@@ -366,18 +368,19 @@ const svelte = async (options = {}) => {
366
368
  "svelte/require-store-callbacks-use-set-param": "error",
367
369
  "svelte/spaced-html-comment": ["error", "always"],
368
370
  "svelte/valid-each-key": "error",
369
- ...disableStylistic ? {
371
+ ...disableStylistic && {
370
372
  "@stylistic/indent": "off",
371
373
  "@stylistic/indent-binary-ops": "off",
372
374
  "@stylistic/no-trailing-spaces": "off"
373
- } : {}
375
+ }
374
376
  }
375
377
  }];
376
378
  };
377
379
  //#endregion
378
380
  //#region src/configs/tailwindcss.ts
379
381
  const tailwindcss = async () => {
380
- return [...(await import("eslint-plugin-tailwindcss").then((mod) => mod.default)).configs["flat/recommended"].map((config) => {
382
+ const { default: pluginTailwind } = await import("eslint-plugin-tailwindcss");
383
+ return [...pluginTailwind.configs["flat/recommended"].map((config) => {
381
384
  var _config$name;
382
385
  return {
383
386
  ...config,
@@ -433,7 +436,9 @@ var unicorn_default = [{
433
436
  "unicorn/import-style": "off",
434
437
  "unicorn/no-null": "off",
435
438
  "unicorn/no-useless-undefined": ["error", { checkArguments: false }],
436
- "unicorn/prevent-abbreviations": "off"
439
+ "unicorn/prevent-abbreviations": "off",
440
+ "unicorn/comment-content": "off",
441
+ "unicorn/consistent-boolean-name": "off"
437
442
  }
438
443
  }];
439
444
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichthagel/eslint-config",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "Licht's ESLint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -44,34 +44,34 @@
44
44
  "@eslint/js": "^10.0.0",
45
45
  "@stylistic/eslint-plugin": "^5.0.0",
46
46
  "eslint-plugin-perfectionist": "^5.0.0",
47
- "eslint-plugin-unicorn": "^64.0.0",
47
+ "eslint-plugin-unicorn": "^67.0.0",
48
48
  "globals": "^17.0.0",
49
49
  "typescript-eslint": "^8.7.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@commitlint/cli": "^20.0.0",
53
- "@commitlint/config-conventional": "^20.0.0",
54
- "@commitlint/types": "^20.0.0",
52
+ "@commitlint/cli": "^21.0.0",
53
+ "@commitlint/config-conventional": "^21.0.0",
54
+ "@commitlint/types": "^21.0.0",
55
55
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
56
56
  "@types/node": "^24.0.0",
57
57
  "eslint": "^10.0.0",
58
- "eslint-plugin-n": "^17.10.3",
58
+ "eslint-plugin-n": "^18.0.0",
59
59
  "eslint-plugin-solid": "^0.14.3",
60
60
  "eslint-plugin-svelte": "^3.0.0",
61
61
  "eslint-plugin-tailwindcss": "^3.17.4",
62
62
  "eslint-typegen": "^2.0.0",
63
63
  "husky": "^9.1.6",
64
64
  "jiti": "^2.4.2",
65
- "lint-staged": "^16.0.0",
65
+ "lint-staged": "^17.0.0",
66
66
  "svelte": "^5.12.0",
67
- "tsdown": "^0.21.0",
67
+ "tsdown": "^0.22.0",
68
68
  "tsx": "^4.19.1",
69
69
  "typescript": "^6.0.0",
70
70
  "vitest": "^4.0.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "eslint": ">=8.40.0",
74
- "eslint-plugin-n": "^17.2.1",
74
+ "eslint-plugin-n": "^17.2.1 || ^18.0.0",
75
75
  "eslint-plugin-solid": "^0.14.3",
76
76
  "eslint-plugin-svelte": "^2.39.0 || ^3.0.0",
77
77
  "eslint-plugin-tailwindcss": "^3.17.4"