-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Disallow duplicate require #2925
Comments
Try adding |
Do you mean, in my .eslintrc,
I've tried just that and it didn't change anything. |
Still the same issue |
I've also tried : and also :
But both didn't work. |
The latter is what I meant; if that doesn't work, then it seems like a good enhancement PR to make to the rule. |
I confirm that it doesn't work with the latter either. |
I'm sorry I won't have much time to work on this issue. |
Doesn't that overlap with ESLint's existing no-duplicate-imports rule? |
Yes, by design - that rule can't take advantage of custom resolvers. |
I have following code :
Both require are using the same path, and should thus be grouped.
I've tried to enable this in my .eslintrc :
But it didn't have any effect.
Are there any rules that can catch this ?
The text was updated successfully, but these errors were encountered: