0.1.5 • Published 3 years ago
eslint-plugin-react-func1 v0.1.5
eslint-plugin-react-func
max lines per function for react
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-react-func
:
$ npm install eslint-plugin-react-func --save-dev
or
$ yarn add eslint-plugin-react-func -D
Usage
Add react-func
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"react-func"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"react-func/max-lines-per-function": ["error", 20]
}
}
Supported Rules
- Fill in provided rules here