eslint-plugin-simple-import-react
v0.0.1
Published
auto import react
Downloads
3
Maintainers
Readme
eslint-plugin-simple-import-react
Auto importing React, developed base on eslint-plugin-react/react-in-jsx-scope.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-simple-import-react
:
npm install eslint-plugin-simple-import-react --save-dev
Usage
Add simple-import-react
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"simple-import-react"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"simple-import-react/import": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.