eslint-import-resolver-variable-path
v0.0.4
Published
babel-plugin-variable-path-resolver resolver for eslint-plugin-import
Downloads
5
Maintainers
Readme
eslint-import-resolver-variable-path
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.