Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

.eslintrc.js node .js import resolver to fix webstorm eslint error #71

Merged

Conversation

austinrivas
Copy link

@austinrivas austinrivas commented Apr 5, 2020

Wish I had a good answer for why this fixes the eslint error described here, but it does.

@Can-Sahin
Copy link
Member

I honestly couldnt understand some SurmaAas comments there. It seems like there is another problem apart from this :) Any idea? I dont work on windows OS and webstorm at all so can't really reproduce any of it

@austinrivas
Copy link
Author

@Can-Sahin I'm sorry but I don't have much insight on this one either.

I'm using Webstorm on Ubuntu and I am able to reproduce the error when I am working on a project that has multiple node_modules directories.

For me the error also seems to pop up when working from the command line.

I also noticed that my fix of just adding .js to the extensions wasn't enough, I had to add .ts, .tsx to the extensions as well earlier today.

@Can-Sahin
Copy link
Member

Ok can you update your PR including ts tsx extensions. Currently there is only js. (I was going to ask why don't we need ts :))

@austinrivas
Copy link
Author

@Can-Sahin should be good now.

It would be nice to get someone with a little more familiarity with the .eslintrc.js config to shed some light on why this is happening.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants