@infernodesign/eslint-config 2.9.0 → 2.10.1

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.js CHANGED
@@ -8,7 +8,7 @@ import { cac } from "cac";
8
8
  import parse from "parse-gitignore";
9
9
  import { execSync } from "node:child_process";
10
10
  //#region package.json
11
- var version = "2.9.0";
11
+ var version = "2.10.1";
12
12
  //#endregion
13
13
  //#region src/cli/constants.ts
14
14
  const vscodeSettingsString = `
@@ -158,7 +158,6 @@ function isGitClean() {
158
158
  //#endregion
159
159
  //#region src/cli/stages/update-eslint-files.ts
160
160
  const ESLINT_OR_PRETTIER = /eslint|prettier/;
161
- const ESLINT_CONFIG = /eslint\.config\./;
162
161
  async function updateEslintFiles(result) {
163
162
  const cwd = process.cwd();
164
163
  const pathESLintIgnore = path.join(cwd, ".eslintignore");
@@ -184,21 +183,21 @@ async function updateEslintFiles(result) {
184
183
  const files = fs.readdirSync(cwd);
185
184
  const legacyConfig = [];
186
185
  files.forEach((file) => {
187
- if (ESLINT_OR_PRETTIER.test(file) && !ESLINT_CONFIG.test(file)) legacyConfig.push(file);
186
+ if (ESLINT_OR_PRETTIER.test(file) && !file.includes("eslint.config.")) legacyConfig.push(file);
188
187
  });
189
188
  if (legacyConfig.length) p.note(c.dim(legacyConfig.join(", ")), "You can now remove those files manually");
190
189
  }
191
190
  //#endregion
192
191
  //#region src/cli/constants-generated.ts
193
192
  const versionsMap = {
194
- "@eslint-react/eslint-plugin": "^5.9.3",
195
- "@next/eslint-plugin-next": "^16.2.9",
193
+ "@eslint-react/eslint-plugin": "^5.10.4",
194
+ "@next/eslint-plugin-next": "^16.2.10",
196
195
  "@sanity-labs/eslint-plugin": "^1.0.0",
197
- "@unocss/eslint-plugin": "^66.7.3",
196
+ "@unocss/eslint-plugin": "^66.7.4",
198
197
  "astro-eslint-parser": "^2.1.0",
199
- "eslint": "^10.5.0",
198
+ "eslint": "^10.6.0",
200
199
  "eslint-plugin-astro": "^2.1.1",
201
- "eslint-plugin-better-tailwindcss": "^4.6.0",
200
+ "eslint-plugin-better-tailwindcss": "^4.6.1",
202
201
  "eslint-plugin-format": "^2.0.1",
203
202
  "eslint-plugin-react-refresh": "^0.5.3",
204
203
  "eslint-plugin-solid": "^0.14.5",