eslint-import-resolver-babel-root-import
Version:
babel-plugin-root-import resolver for eslint-plugin-import
44 lines (31 loc) • 846 B
Markdown
# eslint-import-resolver-babel-root-import
A [babel-root-import](https://github.com/michaelzoidl/babel-root-import)
resolver for [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import).
## Installation
```sh
npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-root-import
```
## Usage
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.
### Example
```json
{
"extends": "airbnb",
"rules": {},
"settings": {
"import/resolver": {
"babel-root-import": {}
}
}
}
```
## License
MIT, see [LICENSE.md](/LICENSE.md) for details.
[babel-root-import]: https://github.com/michaelzoidl/babel-root-import