-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The import-x/no-unresolved rule conflicts with the alias of the vite alias path #215
Comments
package.json: vite.config.ts: eslint.config.js: App.vue: <script setup lang="ts"> import HelloWorld from '@/components/HelloWorld.vue' </script>Error: |
@WZDreamJiao Have you tried this import resolver for vite alias? https://github.com/pzmosquito/eslint-import-resolver-vite |
@SukkaW Thank you very much. It works. I'll look into how it works. Thank you very much |
You can have multiple resolvers enabled all at once with |
@SukkaW yes,thank you |
I am very sorry to bother you. During the project construction process, I used eslint-plugin-import-x to make import rules, and used resolve.alias to configure path aliases in the vite configuration file. Unfortunately the import - x/no - unresolved this rule, does not identify the import HelloWorld from '@ / components/HelloWorld. Vue' the introduction of this path, I was looking for, but didn't find effective solution, Sorry to bother you again
The text was updated successfully, but these errors were encountered: