A babel-plugin-module-resolver resolver for eslint-plugin-import
npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-module
Inside your .eslintrc
file, pass this resolver to eslint-plugin-import
:
"settings": {
"import/resolver": {
"babel-module": {}
}
}
And see babel-plugin-module-resolver to know how to configure your aliases.
{
"extends": "airbnb",
"rules": {
"comma-dangle": 0
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
}
MIT, see LICENSE.md for details.