eslint-import-resolver-module-alias-rn
v0.0.2
Published
Eslint support for babel plugin to rewrite the path in require() and ES6 import
Downloads
1
Maintainers
Readme
eslint-import-resolver-module-alias-rn
A babel-plugin-module-alias-rn resolver for [eslint-plugin-import][eslint-plugin-import]
Installation
npm install --save-dev eslint-plugin-import eslint-import-resolver-module-alias-rn
Usage
Inside your .eslintrc
file, pass this resolver to eslint-plugin-import
:
"settings": {
"import/resolver": {
"module-alias-rn": {}
}
}
And see babel-plugin-module-alias-rn to know how to configure your aliases.
Example
{
react: Boolean,
root: String,
map: [
{
expose: String,
src: String
},
...
]
}
License
MIT, see LICENSE.md for details.