@vida0905/eslint-config 1.1.0 → 1.2.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.cjs CHANGED
@@ -37,6 +37,7 @@ __export(src_exports, {
37
37
  });
38
38
  module.exports = __toCommonJS(src_exports);
39
39
  var import_eslint_config2 = __toESM(require("@antfu/eslint-config"), 1);
40
+ var import_eslint_import_resolver_oxc = require("eslint-import-resolver-oxc");
40
41
  var import_local_pkg = require("local-pkg");
41
42
 
42
43
  // src/configs/pinia.ts
@@ -144,7 +145,9 @@ function defineConfig(options = {}, ...userConfigs) {
144
145
  ).prepend({
145
146
  name: "vida/imports/setup",
146
147
  settings: {
147
- "import-x/resolver": "oxc"
148
+ "import-x/resolver-next": [
149
+ (0, import_eslint_import_resolver_oxc.createOxcImportResolver)()
150
+ ]
148
151
  }
149
152
  });
150
153
  }
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/index.ts
2
2
  import antfu, { resolveSubOptions } from "@antfu/eslint-config";
3
+ import { createOxcImportResolver } from "eslint-import-resolver-oxc";
3
4
  import { isPackageExists } from "local-pkg";
4
5
 
5
6
  // src/configs/pinia.ts
@@ -107,7 +108,9 @@ function defineConfig(options = {}, ...userConfigs) {
107
108
  ).prepend({
108
109
  name: "vida/imports/setup",
109
110
  settings: {
110
- "import-x/resolver": "oxc"
111
+ "import-x/resolver-next": [
112
+ createOxcImportResolver()
113
+ ]
111
114
  }
112
115
  });
113
116
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "1.1.0",
5
- "packageManager": "pnpm@9.11.0",
4
+ "version": "1.2.0",
5
+ "packageManager": "pnpm@9.15.0",
6
6
  "description": "Vida Xie's ESLint Config",
7
7
  "author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",
8
8
  "license": "MIT",
@@ -32,7 +32,6 @@
32
32
  "lint": "eslint .",
33
33
  "lint:fix": "eslint . --fix",
34
34
  "dev": "tsup --watch",
35
- "inspect": "npx @eslint/config-inspector",
36
35
  "typegen": "tsx scripts/typegen",
37
36
  "build": "npm run typegen && tsup",
38
37
  "release": "npm run lint && npm run typecheck && bumpp",
@@ -41,35 +40,24 @@
41
40
  "prepare": "simple-git-hooks"
42
41
  },
43
42
  "peerDependencies": {
44
- "@unocss/eslint-plugin": ">=0.50.0",
45
- "eslint": ">=9.10.0",
46
- "eslint-plugin-format": ">=0.1.0"
47
- },
48
- "peerDependenciesMeta": {
49
- "@unocss/eslint-plugin": {
50
- "optional": true
51
- },
52
- "eslint-plugin-format": {
53
- "optional": true
54
- }
43
+ "eslint": ">=9.10.0"
55
44
  },
56
45
  "dependencies": {
57
- "@antfu/eslint-config": "^3.7.3",
58
- "eslint-import-resolver-oxc": "^0.3.0",
46
+ "@antfu/eslint-config": "^3.12.0",
47
+ "eslint-import-resolver-oxc": "^0.6.0",
59
48
  "eslint-plugin-pinia": "^0.4.1",
60
- "local-pkg": "^0.5.0"
49
+ "local-pkg": "^0.5.1"
61
50
  },
62
51
  "devDependencies": {
63
- "@eslint/config-inspector": "^0.5.4",
64
- "@types/node": "^22.7.3",
65
- "bumpp": "^9.5.2",
66
- "eslint": "^9.11.1",
52
+ "@types/node": "^22.10.2",
53
+ "bumpp": "^9.9.1",
54
+ "eslint": "^9.17.0",
67
55
  "eslint-typegen": "^0.3.2",
68
- "lint-staged": "^15.2.10",
56
+ "lint-staged": "^15.2.11",
69
57
  "simple-git-hooks": "^2.11.1",
70
- "tsup": "^8.3.0",
71
- "tsx": "^4.19.1",
72
- "typescript": "^5.6.2"
58
+ "tsup": "^8.3.5",
59
+ "tsx": "^4.19.2",
60
+ "typescript": "^5.7.2"
73
61
  },
74
62
  "simple-git-hooks": {
75
63
  "pre-commit": "pnpm lint-staged"