0.0.4 • Published 5 years ago

eslint-import-resolver-variable-path v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

eslint-import-resolver-variable-path

Maintenance Status npm

A babel-plugin-variable-path-resolver resolver for eslint-plugin-import

Installation

npm install --save-dev eslint-plugin-import eslint-import-resolver-variable-path

Usage

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

"settings": {
  "import/resolver": "variable-path"
}

And see babel-plugin-variable-path-resolver to know how to configure your aliases.

Example

{
  "extends": "airbnb",
  "rules": {
    "comma-dangle": 0
  },
  "settings": {
    "import/resolver": "variable-path"
  }
}

License

MIT, see LICENSE.md for details.