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