eslint-import-resolver-enhanced-resolve

1.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-import-resolver-enhanced-resolve

Weekly Downloads

770

Version

1.0.5

License

ISC

Unpacked Size

3.04 kB

Total Files

3

Last publish

Collaborators

  • markjm