jsenv-eslint-import-resolver
Integrate jsenv into eslint-plugin-import
Plugin to enable jsenv module resolution inside eslint-plugin-import.
Installing
npm i --save-dev github:jsenv/eslint-import-resolver
Once npm has downloaded this module on your computer, you must configure eslint-plugin-import
in your eslint config to make it use this resolver.
Configuration
import/resolver
must be a path to this resolver.
Here is an example inside .eslintrc.js
:
module.exports = {
settings: {
"import/resolver": {
[`${__dirname}/node_modules/@jsenv/eslint-import-resolver/dist/src/resolver.js`]: {
importMap: {},
projectFolder: __dirname,
},
},
},
}