0.1.0 • Published 4 years ago
eslint-plugin-react-use-declaration v0.1.0
eslint-plugin-react-use-declaration
Dont use React.useHook
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-react-use-declaration:
$ npm install eslint-plugin-react-use-declaration --save-devUsage
Add react-use-declaration to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"react-use-declaration"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"react-use-declaration/rule-name": 2
}
}