@vida0905/eslint-config 1.1.1 → 1.2.1

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
@@ -29,14 +29,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
 
31
31
  // src/index.ts
32
- var src_exports = {};
33
- __export(src_exports, {
32
+ var index_exports = {};
33
+ __export(index_exports, {
34
34
  deepMerge: () => deepMerge,
35
- default: () => src_default,
35
+ default: () => index_default,
36
36
  defineConfig: () => defineConfig
37
37
  });
38
- module.exports = __toCommonJS(src_exports);
38
+ module.exports = __toCommonJS(index_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
@@ -115,7 +116,7 @@ function deepMerge(target, source) {
115
116
  }
116
117
 
117
118
  // src/index.ts
118
- __reExport(src_exports, require("@antfu/eslint-config"), module.exports);
119
+ __reExport(index_exports, require("@antfu/eslint-config"), module.exports);
119
120
  function defineConfig(options = {}, ...userConfigs) {
120
121
  const {
121
122
  pinia: enablePinia = (0, import_local_pkg.isPackageExists)("pinia")
@@ -144,11 +145,13 @@ 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
  }
151
- var src_default = defineConfig;
154
+ var index_default = defineConfig;
152
155
  // Annotate the CommonJS export names for ESM import in node:
153
156
  0 && (module.exports = {
154
157
  deepMerge,
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,13 +108,15 @@ 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
  }
114
- var src_default = defineConfig;
117
+ var index_default = defineConfig;
115
118
  export {
116
119
  deepMerge,
117
- src_default as default,
120
+ index_default as default,
118
121
  defineConfig
119
122
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "1.1.1",
5
- "packageManager": "pnpm@9.11.0",
4
+ "version": "1.2.1",
5
+ "packageManager": "pnpm@9.15.3",
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",
@@ -43,21 +43,21 @@
43
43
  "eslint": ">=9.10.0"
44
44
  },
45
45
  "dependencies": {
46
- "@antfu/eslint-config": "^3.11.2",
47
- "eslint-import-resolver-oxc": "^0.5.0",
46
+ "@antfu/eslint-config": "^3.14.0",
47
+ "eslint-import-resolver-oxc": "^0.8.0",
48
48
  "eslint-plugin-pinia": "^0.4.1",
49
- "local-pkg": "^0.5.1"
49
+ "local-pkg": "^1.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/node": "^22.10.1",
53
- "bumpp": "^9.8.1",
54
- "eslint": "^9.16.0",
55
- "eslint-typegen": "^0.3.2",
56
- "lint-staged": "^15.2.10",
52
+ "@types/node": "^22.10.6",
53
+ "bumpp": "^9.10.0",
54
+ "eslint": "^9.18.0",
55
+ "eslint-typegen": "^1.0.0",
56
+ "lint-staged": "^15.3.0",
57
57
  "simple-git-hooks": "^2.11.1",
58
58
  "tsup": "^8.3.5",
59
59
  "tsx": "^4.19.2",
60
- "typescript": "^5.7.2"
60
+ "typescript": "^5.7.3"
61
61
  },
62
62
  "simple-git-hooks": {
63
63
  "pre-commit": "pnpm lint-staged"