@coderwyd/eslint-config 4.6.3 → 4.7.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.
package/dist/cli.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export { };
package/dist/cli.js CHANGED
@@ -10,29 +10,33 @@ import prompts from "prompts";
10
10
  import { execSync } from "node:child_process";
11
11
 
12
12
  //#region package.json
13
- var version = "4.6.3";
13
+ var version = "4.7.0";
14
14
  var devDependencies = {
15
- "@antfu/ni": "^25.0.0",
16
- "@eslint-react/eslint-plugin": "^1.52.9",
17
- "@eslint/config-inspector": "^1.2.0",
15
+ "@antfu/ni": "^26.1.0",
16
+ "@eslint-react/eslint-plugin": "^2.0.3",
17
+ "@eslint/config-inspector": "^1.3.0",
18
18
  "@types/eslint-config-prettier": "^6.11.3",
19
- "@types/node": "^24.3.0",
19
+ "@types/node": "^24.6.0",
20
20
  "@types/prompts": "^2.4.9",
21
21
  "@types/yargs": "^17.0.33",
22
- "@unocss/eslint-plugin": "^66.5.0",
22
+ "@unocss/eslint-plugin": "^66.5.2",
23
23
  "bumpp": "^10.2.3",
24
- "eslint": "^9.34.0",
24
+ "eslint": "^9.36.0",
25
25
  "eslint-plugin-react-hooks": "6.0.0-rc1",
26
- "eslint-plugin-react-refresh": "^0.4.20",
27
- "eslint-plugin-svelte": "^3.12.0",
26
+ "eslint-plugin-react-refresh": "^0.4.22",
27
+ "eslint-plugin-svelte": "^3.12.4",
28
28
  "eslint-plugin-tailwindcss": "^3.18.2",
29
- "jiti": "^2.5.1",
29
+ "eslint-typegen": "^2.3.0",
30
+ "jiti": "^2.6.0",
30
31
  "nano-staged": "^0.8.0",
32
+ "prettier": "^3.6.2",
33
+ "publint": "^0.3.13",
31
34
  "simple-git-hooks": "^2.13.1",
32
- "svelte": "^5.38.6",
33
- "svelte-eslint-parser": "^1.3.1",
34
- "tsdown": "^0.14.2",
35
- "typescript": "^5.9.2"
35
+ "svelte": "^5.39.6",
36
+ "svelte-eslint-parser": "^1.3.3",
37
+ "tsdown": "^0.15.5",
38
+ "typescript": "^5.9.2",
39
+ "unplugin-unused": "^0.5.3"
36
40
  };
37
41
 
38
42
  //#endregion
@@ -97,8 +101,7 @@ async function run(options = {}) {
97
101
  if (fs.existsSync(pathESLintIngore)) {
98
102
  console.log(c.cyan(`${ARROW} migrating existing .eslintignore`));
99
103
  const content = await fsp.readFile(pathESLintIngore, "utf-8");
100
- const parsed = parse(content);
101
- const globs = parsed.globs();
104
+ const globs = parse(content).globs();
102
105
  for (const glob of globs) if (glob.type === "ignore") eslintIgnores.push(...glob.patterns);
103
106
  else if (glob.type === "unignore") eslintIgnores.push(...glob.patterns.map((pattern) => `!${pattern}`));
104
107
  }
@@ -164,7 +167,7 @@ module.exports = defineConfig({\n${coderwydConfig}\n})
164
167
  function header() {
165
168
  console.log(`\n${c.green(`@coderwyd/eslint-config `)}${c.dim(`v${version}`)}`);
166
169
  }
167
- const instance = yargs(hideBin(process.argv)).scriptName("@coderwyd/eslint-config").usage("").command("*", "Run the initialization or migration", (args) => args.option("yes", {
170
+ yargs(hideBin(process.argv)).scriptName("@coderwyd/eslint-config").usage("").command("*", "Run the initialization or migration", (args) => args.option("yes", {
168
171
  alias: "y",
169
172
  description: "Skip prompts and use default values",
170
173
  type: "boolean"
@@ -178,8 +181,7 @@ const instance = yargs(hideBin(process.argv)).scriptName("@coderwyd/eslint-confi
178
181
  console.error(c.red(`${CROSS} ${String(error)}`));
179
182
  process.exit(1);
180
183
  }
181
- }).showHelpOnFail(false).alias("h", "help").version("version", version).alias("v", "version");
182
- instance.help().argv;
184
+ }).showHelpOnFail(false).alias("h", "help").version("version", version).alias("v", "version").help().argv;
183
185
 
184
186
  //#endregion
185
187
  export { };