eslint-plugin-rectify
v0.5.0
Published
针对 Code Review 过程中发现的常见编码问题,不断完善一个能避免此类问题的 eslint-plugin
Downloads
2
Maintainers
Readme
eslint-plugin-rectify
eslint-plugin
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-rectify
:
npm install eslint-plugin-rectify --save-dev
Usage
Add rectify
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"rectify"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"rectify/no-useless-concat": 2,
"rectify/no-string-regexp": 2,
"rectify/json-parse-risk": 2,
"rectify/no-default-sort": 2
}
}
Supported Rules
- Fill in provided rules here