Static AST checker for React Rainbow Components projects
You'll first need to install ESLint:
$ yarn add -D eslint
Next, install eslint-plugin-rainbow:
$ yarn add -D eslint-plugin-rainbow
Add rainbow to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"rainbow"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"rainbow/no-double-negation-renderif": 2
}
}- no-double-negation-renderif
- no-capitalized-props
- no-required-props-ts-declaration