-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
n/file-extension-in-import triggered incorrectly on some modules with /
in path.
#21
Comments
The regex for package is not working, see https://regex101.com/r/Dch2Gv/1 Specifically, there is a basic regex test for a valid package to get out early This may have to get smarter by examining the I'll look at the |
So this is a confirmed bug, and I have looked at
Ultimately, I think one of the following needs to happen:
The problem with PR'ing to the Any of the above are possible, but I'm afraid I've got almost a full day into this so I have to pull the ripcord and move on. Thoughts? |
if it's a local module ( |
That may be of some help, but on cursory look I cannot tell if it's going to be enough. I'm sorry to abandon this issue at this point, but I have to move on to other priorities. I hope my research has documented the issue and someone else will chip in some effort. |
shouldn't it just check if it starts with a |
The 'n/file-extension-in-import' rule has been removed from the 'overrides' section and configured as 'off'. This was done due to the rule being buggy as reported in the issue eslint-community/eslint-plugin-n#21. Some code comments were also added to describe certain rules. The purpose of this change is to prevent undesired ESLint warnings. Signed-off-by: prisis <d.bannert@anolilab.de>
fixed by #132 |
require file extension '.js' n/file-extension-in-import
error is being triggered incorrectly for a few modules including@apollo/client/core
andyargs/helpers
The key driver to these appear to be the occurrence of a slash even, which may be tripping a condition to call it a local file.
I am investigating now to see if I can solve and PR.
The text was updated successfully, but these errors were encountered: