@infernodesign/eslint-config 2.10.1 → 2.11.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 +1 -1
- package/dist/cli.js +16 -17
- package/dist/index.d.ts +2521 -1337
- package/dist/index.js +4 -12
- package/package.json +47 -48
package/dist/cli.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
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.
|
|
11
|
+
var version = "2.11.0";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/cli/constants.ts
|
|
14
14
|
const vscodeSettingsString = `
|
|
@@ -168,7 +168,8 @@ async function updateEslintFiles(result) {
|
|
|
168
168
|
const eslintIgnores = [];
|
|
169
169
|
if (fs.existsSync(pathESLintIgnore)) {
|
|
170
170
|
p.log.step(c.cyan`Migrating existing .eslintignore`);
|
|
171
|
-
const
|
|
171
|
+
const content = await fsPromises.readFile(pathESLintIgnore, "utf-8");
|
|
172
|
+
const globs = parse(content).globs();
|
|
172
173
|
for (const glob of globs) if (glob.type === "ignore") eslintIgnores.push(...glob.patterns);
|
|
173
174
|
else if (glob.type === "unignore") eslintIgnores.push(...glob.patterns.map((pattern) => `!${pattern}`));
|
|
174
175
|
}
|
|
@@ -190,19 +191,19 @@ async function updateEslintFiles(result) {
|
|
|
190
191
|
//#endregion
|
|
191
192
|
//#region src/cli/constants-generated.ts
|
|
192
193
|
const versionsMap = {
|
|
193
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
194
|
-
"@next/eslint-plugin-next": "^16.2.
|
|
194
|
+
"@eslint-react/eslint-plugin": "^5.18.0",
|
|
195
|
+
"@next/eslint-plugin-next": "^16.2.12",
|
|
195
196
|
"@sanity-labs/eslint-plugin": "^1.0.0",
|
|
196
|
-
"@unocss/eslint-plugin": "^66.7.
|
|
197
|
-
"astro-eslint-parser": "^
|
|
198
|
-
"eslint": "^10.
|
|
199
|
-
"eslint-plugin-astro": "^
|
|
200
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
197
|
+
"@unocss/eslint-plugin": "^66.7.5",
|
|
198
|
+
"astro-eslint-parser": "^3.0.0",
|
|
199
|
+
"eslint": "^10.8.0",
|
|
200
|
+
"eslint-plugin-astro": "^3.0.1",
|
|
201
|
+
"eslint-plugin-better-tailwindcss": "^4.7.0",
|
|
201
202
|
"eslint-plugin-format": "^2.0.1",
|
|
202
203
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
203
204
|
"eslint-plugin-solid": "^0.14.5",
|
|
204
|
-
"eslint-plugin-storybook": "^10.
|
|
205
|
-
"eslint-plugin-svelte": "^3.
|
|
205
|
+
"eslint-plugin-storybook": "^10.5.5",
|
|
206
|
+
"eslint-plugin-svelte": "^3.22.0",
|
|
206
207
|
"prettier-plugin-astro": "^0.14.1",
|
|
207
208
|
"prettier-plugin-slidev": "^1.0.5",
|
|
208
209
|
"svelte-eslint-parser": "^1.8.0"
|
|
@@ -228,12 +229,10 @@ async function updatePackageJson(result) {
|
|
|
228
229
|
addedPackages.push(f);
|
|
229
230
|
});
|
|
230
231
|
break;
|
|
231
|
-
case "unocss":
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
});
|
|
236
|
-
break;
|
|
232
|
+
case "unocss": dependenciesMap.unocss.forEach((f) => {
|
|
233
|
+
pkg.devDependencies[f] = versionsMap[f];
|
|
234
|
+
addedPackages.push(f);
|
|
235
|
+
});
|
|
237
236
|
}
|
|
238
237
|
});
|
|
239
238
|
for (const framework of result.frameworks) {
|