Skip to content
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

fix(rules/imports): loose rules for import/extensions && import/no-unresolved (warn) #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joshwiens
Copy link
Member

All of our loaders / plugins require webpack, though most have either a loose or no dependency on it

  • import/no-unresolved will fail as webpack/* doesn't exist as an explicitly installed dependency

  • import/extensions will fail for the same reason, extension can't be determined for something that isn't there.

This change won't effect Travis runs ( no warning thrown ) as we explicitly install webpack

 - Reasoning: All of our loaders / plugins require webpack, though most have either a loose or no dependency on it thus this rule will almost always fail.
 - Reasoning: All of our loaders / plugins require webpack, though most have either a loose or no dependency on it thus this rule will almost always fail.
 - Reasoning: Error confilicts directly with most loader logic
@jhnns
Copy link
Member

jhnns commented Apr 9, 2017

When do you require("webpack/*")? Do you know that eslint-import can be configured to use webpack's resolver?

@joshwiens
Copy link
Member Author

@jhnns - I was looking into that this morning.

@michael-ciniawsky michael-ciniawsky changed the title fix: loosen import related rules fix(rules/imports): loose rules for import/extensions && import/no-unresolved (warn) Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants