https://github.com/moox/eslint-plugin-react-strict-dom
ESLint Plugin for React Strict DOM
https://github.com/moox/eslint-plugin-react-strict-dom
Last synced: 5 months ago
JSON representation
ESLint Plugin for React Strict DOM
- Host: GitHub
- URL: https://github.com/moox/eslint-plugin-react-strict-dom
- Owner: MoOx
- License: mit
- Created: 2025-07-21T17:00:37.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-23T09:36:53.000Z (11 months ago)
- Last Synced: 2025-10-22T07:54:06.109Z (8 months ago)
- Language: TypeScript
- Size: 41 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ESLint Plugin for React Strict DOM
[ ](https://www.npmjs.com/package/@moox/eslint-plugin-react-strict-dom)
[](https://github.com/MoOx/eslint-plugin-react-strict-dom/actions)
[](https://github.com/MoOx/eslint-plugin-react-strict-dom)

[](https://github.com/MoOx)
[](https://www.linkedin.com/in/maxthirouin/)
[](https://bsky.app/profile/moox.io)
[](https://x.com/MoOx)
> ESLint Plugin for React Strict DOM
## Installation
```bash
npm install --save-dev @moox/eslint-plugin-react-strict-dom
```
## Usage
Add `@moox/eslint-plugin-react-strict-dom` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"@moox/react-strict-dom"
]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"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:
```json
{
"extends": [
"plugin:@moox/react-strict-dom/recommended"
]
}
```
## Rules
| Rule | Description | Fixable |
|------|-------------|---------|
| [@moox/react-strict-dom/no-unused-styles](docs/rules/no-unused-styles.md) | Detects unused styles created with `css.create` from react-strict-dom | ✅ |
## License
MIT © [Maxime Thirouin](https://moox.io)