ReactLint is a EsLint plugin to search code smells on React applications
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-react-lint
:
npm install eslint-plugin-react-lint --save-dev
Add react-lint
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"react-lint"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"react-lint/no-dom-manipulation": "off"
}
}
- Fill in provided rules here