eslint-plugin
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-rectify
:
npm install eslint-plugin-rectify --save-dev
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
}
}
- Fill in provided rules here