Vite.js + Eslint unable to resolve path alias #14667
-
I use Vue 3 on Vite.js with Eslint + Airbnb config. Airbnb config has a rule I want to use aliases for paths — example: I managed to set up my
Vue app works like that and resolves the import path correctly, but Eslint keeps reporting the error: How and where can I tell Eslint how to resolve aliases? I have tried:
But that doesn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 27 replies
-
this is related to the maybe you can try this: settings: {
'import/resolver': {
alias: {
map: [
['@', './src'],
],
},
},
}, |
Beta Was this translation helpful? Give feedback.
this is related to the
eslint-plugin-import
, which is not maintained by the eslint team. you can file the issue in that repo.maybe you can try this: