0.1.0 • Published 5 years ago
eslint-plugin-jsx-func v0.1.0
eslint-plugin-react-func
max lines per function for react
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-react-func:
$ npm install eslint-plugin-react-func --save-devor
$ yarn add eslint-plugin-react-func -DUsage
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
0.1.0
5 years ago