eslint-import-resolver-babel-module-alias

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-import-resolver-babel-module-alias
250191.5.16 years ago7 years agoMinified + gzip package size for eslint-import-resolver-babel-module-alias in KB

Readme

eslint-import-resolver-babel-module-alias
!npmnpm-version-imagenpm-url !Build Statusci-imageci-url !Coverage Statuscoverage-imagecoverage-url
A babel-plugin-module-aliasmodule-alias resolver for eslint-plugin-importeslint-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-aliasmodule-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.