Skip to content

MoOx/eslint-plugin-react-strict-dom

ESLint Plugin for React Strict DOM

Sponsoring button

GitHub package.json version npm downloads GitHub Workflow Status License
My website moox.io GitHub followers LinkedIn Follow BlueSky Follow X Follow

ESLint Plugin for React Strict DOM

Installation

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:

{
  "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

About

ESLint Plugin for React Strict DOM

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors