1.5.1 • Published 8 years ago

eslint-import-resolver-babel-module-alias v1.5.1

Weekly downloads
460
License
MIT
Repository
github
Last release
8 years ago

eslint-import-resolver-babel-module-alias

npm Build Status Coverage Status

A babel-plugin-module-alias resolver for eslint-plugin-import

Installation

npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-module-alias

Usage

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

"settings": {
  "import/resolver": {
    "babel-module-alias": {}
  }
}

And see babel-plugin-module-alias to know how to configure your aliases.

Example

{
  "extends": "airbnb",
  "rules": {
    "indent": [2, 4, { "SwitchCase": 1 }]
  },
  "settings": {
    "import/resolver": {
      "babel-module-alias": {}
    }
  }
}

License

MIT, see LICENSE.md for details.