@tb-dev/eslint-config 7.1.3 → 7.1.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.js +2 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -21,13 +21,14 @@ var GlobIgnore = /* @__PURE__ */ ((GlobIgnore2) => {
|
|
|
21
21
|
return GlobIgnore2;
|
|
22
22
|
})(GlobIgnore || {});
|
|
23
23
|
|
|
24
|
+
const OPTIONAL_FEATURES = ["perfectionist", "unicorn", "vue"];
|
|
24
25
|
async function interopDefault(promise) {
|
|
25
26
|
const result = await promise;
|
|
26
27
|
return result.default ?? result;
|
|
27
28
|
}
|
|
28
29
|
function isEnabled(config, feature) {
|
|
29
30
|
if (Array.isArray(config)) {
|
|
30
|
-
return config.includes(feature);
|
|
31
|
+
return OPTIONAL_FEATURES.includes(feature) ? config.includes(feature) : true;
|
|
31
32
|
} else if (typeof config === "boolean") {
|
|
32
33
|
return config;
|
|
33
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.5",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"vue"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^8.32.
|
|
25
|
-
"@typescript-eslint/parser": "^8.32.
|
|
26
|
-
"eslint-plugin-perfectionist": "^4.
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
25
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
26
|
+
"eslint-plugin-perfectionist": "^4.13.0",
|
|
27
27
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
28
28
|
"eslint-plugin-vue": "^10.1.0",
|
|
29
|
-
"globals": "^16.
|
|
29
|
+
"globals": "^16.2.0",
|
|
30
30
|
"vue-eslint-parser": "^10.1.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^22.15.
|
|
34
|
-
"eslint": "^9.
|
|
33
|
+
"@types/node": "^22.15.21",
|
|
34
|
+
"eslint": "^9.27.0",
|
|
35
35
|
"prettier": "^3.5.3",
|
|
36
36
|
"tslib": "^2.8.1",
|
|
37
37
|
"typescript": "^5.8.3",
|
|
38
38
|
"vite": "^6.3.5",
|
|
39
|
-
"vite-plugin-dts": "^4.5.
|
|
39
|
+
"vite-plugin-dts": "^4.5.4"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=22"
|