You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# eslint-import-resolver-vite
2
2
3
-
Vite module resolution plugin for `eslint-plugin-import`. This plugin will resolve the `resolve.alias` option.
3
+
Vite module resolution plugin for `eslint-plugin-import` and `eslint-plugin-import-x`. This plugin will resolve the `resolve.alias` option.
4
4
5
5
6
6
### Installation
@@ -24,9 +24,11 @@ export const viteConfigObj = {
24
24
25
25
#### ESLint config file
26
26
NOTE:
27
-
- Since `eslint-plugin-import` doesn't support an async resolver, Vite's [ResolvedConfig API](https://vitejs.dev/guide/api-javascript.html#resolvedconfig) cannot be utilized.
27
+
- Since ESLint requires rules to be synchronous, Vite's [ResolvedConfig API](https://vitejs.dev/guide/api-javascript.html#resolvedconfig) cannot be utilized.
28
28
- This plugin accepts a Vite config object to accommodate various setups, e.g. CJS, ESM, or mixed.
29
+
29
30
```js
31
+
// for using `eslint-plugin-import`
30
32
module.exports= {
31
33
settings: {
32
34
"import/resolver": {
@@ -37,4 +39,17 @@ module.exports = {
37
39
}
38
40
}
39
41
42
+
43
+
// for using `eslint-plugin-import-x` resolver interface v3
0 commit comments