Custom rules built for Rainforest QA
npm install @rainforestqa/eslint-pluginCustom rules built for Rainforest QA
You'll first need to install ESLint:
``sh`
npm i eslint --save-dev
Next, install @rainforestqa/eslint-plugin:
`sh`
npm install @rainforestqa/eslint-plugin --save-dev
Add @rainforestqa/eslint-plugin to the plugins section of your .eslintrc configuration file:
`json`
{
"plugins": ["@rainforestqa/eslint-plugin"]
}
Then configure the rules you want to use under the rules section.
`json`
{
"rules": {
"eslint-plugin/rule-name": 2
}
}
- no-dangerous-conditional-literals-in-jsx`: Certain use of conditional rendering can be broken by browser auto translate / similar dom modifying extensions.