@vida0905/eslint-config 1.1.1 → 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 +4 -1
- package/dist/index.js +4 -1
- package/package.json +8 -8
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":
|
|
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":
|
|
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.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
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",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"eslint": ">=9.10.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@antfu/eslint-config": "^3.
|
|
47
|
-
"eslint-import-resolver-oxc": "^0.
|
|
46
|
+
"@antfu/eslint-config": "^3.12.0",
|
|
47
|
+
"eslint-import-resolver-oxc": "^0.6.0",
|
|
48
48
|
"eslint-plugin-pinia": "^0.4.1",
|
|
49
49
|
"local-pkg": "^0.5.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/node": "^22.10.
|
|
53
|
-
"bumpp": "^9.
|
|
54
|
-
"eslint": "^9.
|
|
52
|
+
"@types/node": "^22.10.2",
|
|
53
|
+
"bumpp": "^9.9.1",
|
|
54
|
+
"eslint": "^9.17.0",
|
|
55
55
|
"eslint-typegen": "^0.3.2",
|
|
56
|
-
"lint-staged": "^15.2.
|
|
56
|
+
"lint-staged": "^15.2.11",
|
|
57
57
|
"simple-git-hooks": "^2.11.1",
|
|
58
58
|
"tsup": "^8.3.5",
|
|
59
59
|
"tsx": "^4.19.2",
|