ESLint Plugin for React Strict DOM
npm install --save-dev @moox/eslint-plugin-react-strict-domAdd @moox/eslint-plugin-react-strict-dom to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"@moox/react-strict-dom"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"@moox/react-strict-dom/no-unused-styles": "warn"
}
}This plugin exports a recommended configuration that enforces React Strict DOM best practices. To enable this configuration use the extends property in your .eslintrc config file:
{
"extends": [
"plugin:@moox/react-strict-dom/recommended"
]
}| Rule | Description | Fixable |
|---|---|---|
| @moox/react-strict-dom/no-unused-styles | Detects unused styles created with css.create from react-strict-dom |
✅ |
MIT © Maxime Thirouin