@moox/eslint-plugin-react-strict-dom
v0.1.1
Published
ESLint plugin for React Strict DOM
Downloads
59
Maintainers
Readme
ESLint Plugin for React Strict DOM
ESLint Plugin for React Strict DOM
Installation
npm install --save-dev @moox/eslint-plugin-react-strict-domUsage
Add @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"
}
}Recommended configuration
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"
]
}Rules
| Rule | Description | Fixable |
|------|-------------|---------|
| @moox/react-strict-dom/no-unused-styles | Detects unused styles created with css.create from react-strict-dom | ✅ |
License
MIT © Maxime Thirouin
