@rhapsodic/eslint-config 1.0.4 → 1.0.5

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
@@ -6,7 +6,6 @@ import { fileURLToPath } from "node:url";
6
6
  import { isPackageExists } from "local-pkg";
7
7
  import { mergeProcessors } from "eslint-merge-processors";
8
8
  import { FlatConfigComposer } from "eslint-flat-config-utils";
9
-
10
9
  //#region src/configs/disables.ts
11
10
  async function disables() {
12
11
  return [{
@@ -20,7 +19,6 @@ async function disables() {
20
19
  }
21
20
  }];
22
21
  }
23
-
24
22
  //#endregion
25
23
  //#region src/globs.ts
26
24
  const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
@@ -71,7 +69,6 @@ const GLOB_EXCLUDE = [
71
69
  "**/auto-import?(s).d.ts",
72
70
  "**/components.d.ts"
73
71
  ];
74
-
75
72
  //#endregion
76
73
  //#region src/configs/ignores.ts
77
74
  async function ignores(userIgnores = []) {
@@ -83,7 +80,6 @@ async function ignores(userIgnores = []) {
83
80
  name: "rhapsodic/ignores"
84
81
  }];
85
82
  }
86
-
87
83
  //#endregion
88
84
  //#region src/configs/imports.ts
89
85
  async function imports(options = {}) {
@@ -103,7 +99,6 @@ async function imports(options = {}) {
103
99
  }
104
100
  }];
105
101
  }
106
-
107
102
  //#endregion
108
103
  //#region src/configs/javascript.ts
109
104
  async function javascript(options = {}) {
@@ -211,7 +206,6 @@ async function javascript(options = {}) {
211
206
  }
212
207
  }];
213
208
  }
214
-
215
209
  //#endregion
216
210
  //#region src/utils.ts
217
211
  const scopeUrl = fileURLToPath(new URL(".", import.meta.url));
@@ -278,7 +272,6 @@ async function ensurePackages(packages) {
278
272
  if (nonExistingPackages.length === 0) return;
279
273
  if (await (await import("@clack/prompts")).confirm({ message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?` })) await import("@antfu/install-pkg").then((i) => i.installPackage(nonExistingPackages, { dev: true }));
280
274
  }
281
-
282
275
  //#endregion
283
276
  //#region src/configs/stylistic.ts
284
277
  const StylisticConfigDefaults = {
@@ -373,14 +366,13 @@ async function stylistic(options = {}) {
373
366
  }
374
367
  }];
375
368
  }
376
-
377
369
  //#endregion
378
370
  //#region src/configs/typescript.ts
379
371
  async function typescript(options = {}) {
380
372
  const { componentExts = [], overrides = {}, parserOptions = {} } = options;
381
373
  const files = options.files ?? [
382
- GLOB_TS,
383
- GLOB_TSX,
374
+ "**/*.?([cm])ts",
375
+ "**/*.?([cm])tsx",
384
376
  ...componentExts.map((ext) => `**/*.${ext}`)
385
377
  ];
386
378
  const tsconfigPath = options?.tsconfigPath ?? void 0;
@@ -445,7 +437,6 @@ async function typescript(options = {}) {
445
437
  }
446
438
  ];
447
439
  }
448
-
449
440
  //#endregion
450
441
  //#region src/configs/unicorn.ts
451
442
  async function unicorn(options = {}) {
@@ -470,7 +461,6 @@ async function unicorn(options = {}) {
470
461
  }
471
462
  }];
472
463
  }
473
-
474
464
  //#endregion
475
465
  //#region src/configs/vue.ts
476
466
  async function vue(options = {}) {
@@ -819,7 +809,6 @@ async function vue(options = {}) {
819
809
  }
820
810
  }];
821
811
  }
822
-
823
812
  //#endregion
824
813
  //#region src/factory.ts
825
814
  const flatConfigProps = [
@@ -887,6 +876,5 @@ function getOverrides(options, key) {
887
876
  ..."overrides" in sub ? sub.overrides : {}
888
877
  };
889
878
  }
890
-
891
879
  //#endregion
892
- export { GLOB_ALL_SRC, GLOB_EXCLUDE, GLOB_JS, GLOB_JSX, GLOB_SRC, GLOB_SRC_EXT, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, StylisticConfigDefaults, combine, rhapsodic as default, rhapsodic, disables, ensurePackages, getOverrides, ignores, imports, interopDefault, isPackageInScope, javascript, parserPlain, renameRules, resolveSubOptions, stylistic, typescript, unicorn, vue };
880
+ export { GLOB_ALL_SRC, GLOB_EXCLUDE, GLOB_JS, GLOB_JSX, GLOB_SRC, GLOB_SRC_EXT, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, StylisticConfigDefaults, combine, rhapsodic as default, rhapsodic, disables, ensurePackages, getOverrides, ignores, imports, interopDefault, isPackageInScope, javascript, parserPlain, renameRules, resolveSubOptions, stylistic, typescript, unicorn, vue };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rhapsodic/eslint-config",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "description": "Rhapsodic's ESLint config",
6
6
  "author": "Svyatoslav Fyodorov <intelrug@gmail.com> (https://github.com/intelrug/)",
7
7
  "license": "MIT",
@@ -40,39 +40,39 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@antfu/install-pkg": "^1.1.0",
43
- "@clack/prompts": "^1.0.1",
44
- "@stylistic/eslint-plugin": "^5.8.0",
45
- "@typescript-eslint/eslint-plugin": "^8.56.0",
46
- "@typescript-eslint/parser": "^8.56.0",
47
- "eslint-flat-config-utils": "^3.0.1",
43
+ "@clack/prompts": "^1.4.0",
44
+ "@stylistic/eslint-plugin": "^5.10.0",
45
+ "@typescript-eslint/eslint-plugin": "^8.59.4",
46
+ "@typescript-eslint/parser": "^8.59.4",
47
+ "eslint-flat-config-utils": "^3.2.0",
48
48
  "eslint-merge-processors": "^2.0.0",
49
- "eslint-plugin-import-x": "^4.16.1",
50
- "eslint-plugin-unicorn": "^63.0.0",
51
- "eslint-plugin-vue": "^10.8.0",
49
+ "eslint-plugin-import-x": "^4.16.2",
50
+ "eslint-plugin-unicorn": "^64.0.0",
51
+ "eslint-plugin-vue": "^10.9.1",
52
52
  "eslint-processor-vue-blocks": "^2.0.0",
53
- "globals": "^17.3.0",
53
+ "globals": "^17.6.0",
54
54
  "local-pkg": "^1.1.2",
55
55
  "vue-eslint-parser": "^10.4.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@antfu/ni": "^28.2.0",
59
- "@eslint/config-inspector": "^1.4.2",
60
- "@types/node": "^24.10.13",
61
- "bumpp": "^10.4.1",
62
- "eslint": "^10.0.0",
58
+ "@antfu/ni": "^30.1.0",
59
+ "@eslint/config-inspector": "^3.0.2",
60
+ "@types/node": "^24.12.4",
61
+ "bumpp": "^11.1.0",
62
+ "eslint": "^10.4.0",
63
63
  "eslint-plugin-vuejs-accessibility": "^2.5.0",
64
- "eslint-typegen": "^2.3.0",
64
+ "eslint-typegen": "^2.3.1",
65
65
  "execa": "^9.6.1",
66
- "lint-staged": "^16.2.7",
67
- "pnpm-workspace-yaml": "^1.5.0",
66
+ "lint-staged": "^17.0.5",
67
+ "pnpm-workspace-yaml": "^1.6.0",
68
68
  "simple-git-hooks": "^2.13.1",
69
- "tinyglobby": "^0.2.15",
70
- "tsdown": "^0.20.3",
71
- "tsx": "^4.21.0",
72
- "typescript": "^5.9.3",
73
- "vitest": "^4.0.18",
74
- "vue": "^3.5.28",
75
- "@rhapsodic/eslint-config": "1.0.4"
69
+ "tinyglobby": "^0.2.16",
70
+ "tsdown": "^0.22.0",
71
+ "tsx": "^4.22.2",
72
+ "typescript": "^6.0.3",
73
+ "vitest": "^4.1.6",
74
+ "vue": "^3.5.34",
75
+ "@rhapsodic/eslint-config": "1.0.5"
76
76
  },
77
77
  "simple-git-hooks": {
78
78
  "pre-commit": "npx lint-staged"