eslint-import-resolver-babel-module-alias
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.