Skip to content

Revert "Add eslint-plugin-import resolvers for node and webpack" #148

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

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

dblandin
Copy link
Contributor

@dblandin dblandin commented Nov 3, 2016

This reverts commit ac35f7e.

Unfortunately, this behavior doesn't seem to work when modules are
imported in source code but not installed via npm, as is the case when
running static analysis builds on codeclimate.com.

2016-11-03-172051_999x478_scrot
2016-11-03-172034_1081x284_scrot

@codeclimate/review 🔎

This reverts commit ac35f7e.

Unfortunately, this behavior doesn't seem to work when modules are
imported in source code but not installed via npm, as is the case when
running static analysis builds on codeclimate.com.
@pbrisbin
Copy link
Contributor

pbrisbin commented Nov 3, 2016

Sounds good to me.

The only thought would be if there are other checks provided by this plugin that do work in the context of an engine. If so though, I still think we'd have to do something to improve the default experience, since currently having this here pretty much guarantees a bunch of confusing issues from that check that doesn't work.

@dblandin
Copy link
Contributor Author

dblandin commented Nov 3, 2016

Yep, in particular the import/no-unresolved check.

I think some of these rules could be re-introduced along with a new blacklist that prevents actual module lookup.

@dblandin dblandin merged commit 2d8c656 into channel/eslint-3 Nov 3, 2016
@dblandin dblandin deleted the devon/revert-eslint-plugin-import branch November 3, 2016 21:22
@AndrewRayCode
Copy link

We're currently hitting this problem with Webpack, eslint and codeclimate. Can you add more context to this? I'm confused about this revert. Requiring packages that aren't installed via npm should clearly raise a linting error. In the case of the screenshot, glob and stylelint aren't default node packages, so if their source isn't explicitly stated, why wouldn't you want to error?

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.

3 participants