Custom .eslintrc with eslint-plugin-import working for relative imports #9631
Replies: 2 comments 2 replies
-
I got: And adding
SolutionI had to use set As I am using Windows, I added this to my
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately this doesn't work either. This article helped me with this issue. By setting the "moduleDirectory" to the "src" folder and "node_modules", the app compiles with no issues and vscode doesn't have any errors. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you want to have your custom .eslintrc file, here's how to configure
you need to
npm i -D eslint eslint-import-resolver-webpack eslint-plugin-import ..other eslint plugins
and configure
eslint-import-resolver-webpack
package like thisThis will work very soon as https://github.com/benmosher/eslint-plugin-import/pull/1276/files got merged, it's probably not yet on npm, be patient
Beta Was this translation helpful? Give feedback.
All reactions