-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Use import/no-extraneous-dependencies #329
Comments
Weird, we already have it included: Line 60 in a28625a
|
I think that needs to be |
What would be the list of path typically used in development? |
Ultimately there'll be too many edge cases to not have it be configurable. |
Yes indeed. @sindresorhus do you think we should add a dedicated variable for this case? |
See import-js/eslint-plugin-import#1171 for a possible solution. That would avoid the need for a dedicated option in XO. If it doesn't get implemented there we could implement it in XO, but I think this a feature that belongs to the plugin rather than XO. |
We could also use eslint-plugin-node/no-extraneous-require and eslint-plugin-node/no-extraneous-import that doesn't have this problem. However it seems those rules do not distinguish Also eslint-plugin-node/no-unpublished-require verifies that all the required/imported files and module are published (modules are in |
https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/no-extraneous-dependencies.md would help prevent issues like avajs/ava#1823.
The globs would have to be configurable though.
The text was updated successfully, but these errors were encountered: