@vida0905/eslint-config 2.11.0 → 2.12.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.mts ADDED
@@ -0,0 +1 @@
1
+ export { };
package/dist/cli.mjs ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import "@antfu/eslint-config/cli";
3
+ export {};
package/dist/index.mjs CHANGED
@@ -37,10 +37,7 @@ function clone(obj) {
37
37
  type: obj.type,
38
38
  lastModified: obj.lastModified
39
39
  });
40
- if (typeof obj === "object") {
41
- const newObject = Object.create(prototype);
42
- return Object.assign(newObject, obj);
43
- }
40
+ if (typeof obj === "object") return Object.assign(Object.create(prototype), obj);
44
41
  return obj;
45
42
  }
46
43
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "2.11.0",
4
+ "version": "2.12.0",
5
5
  "description": "Vida Xie's ESLint Config",
6
6
  "author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",
7
7
  "license": "MIT",
@@ -18,10 +18,13 @@
18
18
  ],
19
19
  "exports": {
20
20
  ".": "./dist/index.mjs",
21
+ "./cli": "./dist/cli.mjs",
21
22
  "./package.json": "./package.json"
22
23
  },
23
24
  "types": "./dist/index.d.mts",
24
- "bin": "./bin/index.mjs",
25
+ "bin": {
26
+ "eslint-config": "./dist/cli.mjs"
27
+ },
25
28
  "files": [
26
29
  "bin",
27
30
  "dist"
@@ -40,24 +43,24 @@
40
43
  }
41
44
  },
42
45
  "dependencies": {
43
- "@antfu/eslint-config": "^7.7.0",
44
- "eslint-flat-config-utils": "^3.0.2",
46
+ "@antfu/eslint-config": "^8.0.0",
47
+ "eslint-flat-config-utils": "^3.1.0",
45
48
  "eslint-plugin-de-morgan": "^2.1.1",
46
49
  "local-pkg": "^1.1.2"
47
50
  },
48
51
  "devDependencies": {
49
52
  "@arethetypeswrong/core": "^0.18.2",
50
- "@types/node": "^25.4.0",
53
+ "@types/node": "^25.5.0",
51
54
  "es-toolkit": "^1.45.1",
52
- "eslint": "^10.0.3",
55
+ "eslint": "^10.1.0",
53
56
  "eslint-typegen": "^2.3.1",
54
57
  "husky": "^9.1.7",
55
58
  "nano-staged": "^0.9.0",
56
59
  "publint": "^0.3.18",
57
- "tsdown": "^0.21.1",
60
+ "tsdown": "^0.21.7",
58
61
  "tsx": "^4.21.0",
59
- "typescript": "^5.9.3",
60
- "vitest": "^4.0.18"
62
+ "typescript": "^6.0.2",
63
+ "vitest": "^4.1.2"
61
64
  },
62
65
  "nano-staged": {
63
66
  "*": "eslint --fix"
@@ -69,7 +72,7 @@
69
72
  "dev": "tsdown --watch",
70
73
  "build": "tsdown",
71
74
  "typegen": "tsx scripts/typegen",
72
- "typecheck": "tsc --noEmit",
75
+ "typecheck": "tsc -b --noEmit",
73
76
  "test": "vitest",
74
77
  "lint": "eslint .",
75
78
  "check": "npm run typecheck && npm run lint",
package/bin/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import '@antfu/eslint-config/cli.mjs'