Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-import-resolver-babel-root-import

olalonde3.4kMIT0.0.2

babel-plugin-root-import resolver for eslint-plugin-import

eslint, eslint-plugin-import, eslint-import-resolver, babel, babel-plugin, module, babel-root-import, rewrite, resolve, rename, mapping, require, import

readme

eslint-import-resolver-babel-root-import

A babel-root-import resolver for eslint-plugin-import.

Installation

npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-root-import

Usage

Inside your .eslintrc file, pass this resolver to eslint-plugin-import:

"settings": {
  "import/resolver": "babel-root-import"
}

And see babel-root-import to know how to configure your prefix/suffix.

Example

{
  "extends": "airbnb",
  "rules": {},
  "settings": {
    "import/resolver": {
      "babel-root-import": {}
    }
  }
}

License

MIT, see LICENSE.md for details.