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

Support for eslint-import-resolver-webpack #61

Open
conartist6 opened this issue Nov 15, 2018 · 1 comment
Open

Support for eslint-import-resolver-webpack #61

conartist6 opened this issue Nov 15, 2018 · 1 comment

Comments

@conartist6
Copy link

conartist6 commented Nov 15, 2018

It seems that when eslint-import-resolver-webpack is used in an eslint configuration which lints on import/no-unresolved, that rule will fail on every import when run in jest-runner-eslint. This includes relative import paths, paths from node_modules, as well as the aliased import paths which the resolver is meant to take care of. It doesn't appear to matter what is in the webpack config at all.

I have in my .eslintrc:

  "settings": {
    "import/resolver": "webpack"
  },

Removing this will resolve relative paths and node_modules correctly, but obviously misses aliases.

@ljharb
Copy link
Collaborator

ljharb commented Nov 15, 2018

Perhaps the runner is not passing settings through to the eslint plugin?

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

No branches or pull requests

2 participants