@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.
Files changed (2) hide show
  1. package/dist/index.js +9 -6
  2. 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
- return typeof options[key] === "boolean" ? {} : options[key] || {};
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["vue3-recommended"].rules,
230
- ...pluginVue.configs["vue3-essential"].rules,
231
- ...pluginVue.configs["vue3-strongly-recommended"].rules,
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 src_default = zjutjh;
278
+ var index_default = zjutjh;
276
279
  export {
277
- src_default as default
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.3.4",
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.19.0",
45
- "@stylistic/eslint-plugin": "^2.13.0",
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": "^15.14.0",
48
- "local-pkg": "^1.0.0"
47
+ "globals": "^16.0.0",
48
+ "local-pkg": "^1.1.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@eslint/config-inspector": "^1.0.0",
52
- "@types/eslint__js": "^8.42.3",
53
- "@types/node": "^22.10.10",
54
- "@typescript-eslint/eslint-plugin": "^8.21.0",
55
- "@typescript-eslint/parser": "^8.21.0",
56
- "bumpp": "^9.10.2",
57
- "eslint": "^9.19.0",
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.3.5",
61
- "typescript": "^5.7.3",
62
- "vue-eslint-parser": "^9.4.3"
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",