eslint-import-resolver-babel-root-import

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-import-resolver-babel-root-import
0.0.27 years ago7 years agoMinified + gzip package size for eslint-import-resolver-babel-root-import in KB

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-importbabel-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.