import-js/eslint-plugin-import
Vedi su GitHubWebpack resolver looks for custom webpack config in packages with jsnext:main
Open
#666 aperta il 14 nov 2016
bugenhancementhelp wantedpackage: resolver/webpack
Metriche repository
- Star
- (4946 star)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
With a .eslintrc like
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.karma.config.js"
}
}
},
when I import
import {takeEvery} from 'redux-saga';
I get the error
Cannot find module '/path/to/project/node_modules/redux-saga/webpack.karma.config.js
When I remove the jsnext:main entry from the package.json inside node_modules/redux-saga, the error goes away. So I guess the plugin is somehow trying to find a Webpack config inside redux-saga to load resolve configuration for ES6 files? This might be fine, looking for my custom Webpack config does not make sense, though.