0.0.7 • Published 4 years ago
eslint-plugin-improve-code v0.0.7
eslint-plugin-eslint-improve-code
created in order to add rule: when arrow func one line breaks, convert it to return style
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-eslint-improve-code:
npm install eslint-plugin-eslint-improve-code --save-devUsage
Add eslint-improve-code to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"eslint-improve-code"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"eslint-improve-code/rule-name": 2
}
}Supported Rules
- Fill in provided rules here