@will-stone/eslint-config 11.0.0 → 11.0.2
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.js +4 -4
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1365,7 +1365,7 @@ function checkDepsExist(depNames) {
|
|
|
1365
1365
|
const data = new TextDecoder().decode(buffer);
|
|
1366
1366
|
const package_ = JSON.parse(data);
|
|
1367
1367
|
for (const depName of depNames) {
|
|
1368
|
-
if (package_ && (package_?.
|
|
1368
|
+
if (package_ && (package_.dependencies?.[depName] || package_.devDependencies?.[depName])) {
|
|
1369
1369
|
hasPackageMap[depName] = true;
|
|
1370
1370
|
foundCount = foundCount + 1;
|
|
1371
1371
|
if (foundCount === depCount) {
|
|
@@ -1388,7 +1388,7 @@ function factory(options) {
|
|
|
1388
1388
|
"typescript",
|
|
1389
1389
|
"astro",
|
|
1390
1390
|
"react",
|
|
1391
|
-
"
|
|
1391
|
+
"tailwindcss",
|
|
1392
1392
|
"jest",
|
|
1393
1393
|
"vitest"
|
|
1394
1394
|
]);
|
|
@@ -1414,10 +1414,10 @@ function factory(options) {
|
|
|
1414
1414
|
if (packageExists.react || options?.react || process.env.INSPECTOR) {
|
|
1415
1415
|
configs.push(react());
|
|
1416
1416
|
}
|
|
1417
|
-
if (packageExists.
|
|
1417
|
+
if (packageExists.tailwindcss) {
|
|
1418
1418
|
console.log(" - Tailwind");
|
|
1419
1419
|
}
|
|
1420
|
-
if (packageExists.
|
|
1420
|
+
if (packageExists.tailwindcss || options?.tailwind || process.env.INSPECTOR) {
|
|
1421
1421
|
configs.push(tailwind());
|
|
1422
1422
|
}
|
|
1423
1423
|
if (packageExists.jest) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
63
63
|
"eslint-plugin-vitest": "^0.5.4",
|
|
64
64
|
"globals": "^15.9.0",
|
|
65
|
-
"globby": "^14.0.2"
|
|
65
|
+
"globby": "^14.0.2",
|
|
66
|
+
"type-fest": "^4.24.0"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@commits-with-character/conventional-changelog-preset": "^0.2.2",
|