jest-community / jest-runner-eslint

An ESLint runner for Jest
MIT License
480 stars 46 forks source link

Support for eslint-import-resolver-webpack #61

Open conartist6 opened 5 years ago

conartist6 commented 5 years ago

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 commented 5 years ago

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