Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (31 loc) · 860 Bytes

File metadata and controls

43 lines (31 loc) · 860 Bytes

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-plugin-root-import"
}

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

Example

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

License

MIT, see LICENSE.md for details.