jsenv-eslint-import-resolver
Make eslint import and jsenv work together
Plugin to enable jsenv module resolution inside eslint-plugin-import.
Installing
npm i --save-dev @jsenv/eslint-import-resolver
Once npm has downloaded this module on your computer, you must configure eslint import plugin 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/node/main.js`]: {
projectFolder: __dirname,
importMapFilenameRelative: "importMap.json",
importMap: {},
},
},
},
}