@zjutjh/eslint-config 0.3.4 → 0.4.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/index.js +9 -6
- package/package.json +15 -16
package/dist/index.js
CHANGED
|
@@ -123,7 +123,10 @@ async function ensurePackages(packages) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
function resolveSubOptions(options, key) {
|
|
126
|
-
|
|
126
|
+
if (typeof options[key] === "boolean") {
|
|
127
|
+
return {};
|
|
128
|
+
}
|
|
129
|
+
return options[key] || {};
|
|
127
130
|
}
|
|
128
131
|
function getOverrides(options, key) {
|
|
129
132
|
return {
|
|
@@ -226,9 +229,9 @@ async function vue(options) {
|
|
|
226
229
|
},
|
|
227
230
|
processor: pluginVue.processors[".vue"],
|
|
228
231
|
rules: {
|
|
229
|
-
...pluginVue.configs["
|
|
230
|
-
...pluginVue.configs["
|
|
231
|
-
...pluginVue.configs["
|
|
232
|
+
...pluginVue.configs["flat/recommended"].map((c) => c.rules).reduce((prev, curr) => ({ ...prev, ...curr }), {}),
|
|
233
|
+
...pluginVue.configs["flat/essential"].map((c) => c.rules).reduce((prev, curr) => ({ ...prev, ...curr }), {}),
|
|
234
|
+
...pluginVue.configs["flat/strongly-recommended"].map((c) => c.rules).reduce((prev, curr) => ({ ...prev, ...curr }), {}),
|
|
232
235
|
"vue/multi-word-component-names": "warn",
|
|
233
236
|
"vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": true }],
|
|
234
237
|
"vue/max-attributes-per-line": ["error", { "singleline": { "max": 3 } }],
|
|
@@ -272,7 +275,7 @@ async function zjutjh(options = {}) {
|
|
|
272
275
|
}
|
|
273
276
|
|
|
274
277
|
// src/index.ts
|
|
275
|
-
var
|
|
278
|
+
var index_default = zjutjh;
|
|
276
279
|
export {
|
|
277
|
-
|
|
280
|
+
index_default as default
|
|
278
281
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zjutjh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "zjutjh",
|
|
7
7
|
"description": "Eslint config used by zjutjh",
|
|
@@ -41,25 +41,24 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@eslint/js": "^9.
|
|
45
|
-
"@stylistic/eslint-plugin": "^2.
|
|
44
|
+
"@eslint/js": "^9.22.0",
|
|
45
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
46
46
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
47
|
-
"globals": "^
|
|
48
|
-
"local-pkg": "^1.
|
|
47
|
+
"globals": "^16.0.0",
|
|
48
|
+
"local-pkg": "^1.1.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@eslint/config-inspector": "^1.0.
|
|
52
|
-
"@types/
|
|
53
|
-
"@
|
|
54
|
-
"@typescript-eslint/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"eslint": "^
|
|
58
|
-
"eslint-plugin-vue": "^9.32.0",
|
|
51
|
+
"@eslint/config-inspector": "^1.0.2",
|
|
52
|
+
"@types/node": "^22.13.10",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
54
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
55
|
+
"bumpp": "^10.1.0",
|
|
56
|
+
"eslint": "^9.22.0",
|
|
57
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
59
58
|
"jiti": "^2.4.2",
|
|
60
|
-
"tsup": "^8.
|
|
61
|
-
"typescript": "^5.
|
|
62
|
-
"vue-eslint-parser": "^
|
|
59
|
+
"tsup": "^8.4.0",
|
|
60
|
+
"typescript": "^5.8.2",
|
|
61
|
+
"vue-eslint-parser": "^10.1.1"
|
|
63
62
|
},
|
|
64
63
|
"scripts": {
|
|
65
64
|
"build": "tsup --format esm --clean --dts",
|