babel-plugin-root-import resolver for eslint-plugin-import
npm install eslint-import-resolver-babel-root-importA babel-root-import
resolver for eslint-plugin-import.
``sh`
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-root-import"
}
And see [babel-root-import][babel-root-import] to know how to configure
your prefix/suffix.
`json``
{
"extends": "airbnb",
"rules": {},
"settings": {
"import/resolver": {
"babel-root-import": {}
}
}
}
MIT, see LICENSE.md for details.
[babel-root-import]: https://github.com/michaelzoidl/babel-root-import