1.0.5 • Published 4 years ago
eslint-import-resolver-enhanced-resolve v1.0.5
eslint-import-resolver-enhanced-resolve
This plugin creates a super simple wrapper around enhanced-resolve to work with eslint-plugin-import. This package is very similar to the webpack resolver provided by the eslint-plugin-import maintainers, but skips a lot of the reading of config files and the like.
Usage
To use this resolver, install it with your preferred package manager, and set up your configuration like below. All enhanced-resolve options are supported.
{
settings: {
"import/resolver": {
"enhanced-resolve" {
extensions: ...
modules: ...
}
}
}
}Core Modules
There is one additional setting legacyCoreModuleResolution which decides if core modules (fs, util, etc) should be checked before (true) or after (false) resolution. This will change the resolution of npm packages of the same name as core modules.