# eslint-plugin-react-dom

> ESLint React's ESLint plugin for DOM related rules.

Latest version **5.20.3** (published 2026-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-react-dom
pnpm add eslint-plugin-react-dom
yarn add eslint-plugin-react-dom
bun add eslint-plugin-react-dom
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.20.3 |
| Published | 2026-09-21 |
| First published | 2024-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 9 |
| Unpacked size | 52.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 588 |
| Author | Rel1cx |
| Maintainers | rel1cx |
| Keywords | react, dom, eslint, eslint-react, eslint-plugin, eslint-plugin-react-dom |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-react-dom
- Repository: https://github.com/Rel1cx/eslint-react
- Issues: https://github.com/Rel1cx/eslint-react/issues
- npm.io page: https://npm.io/package/eslint-plugin-react-dom

## Dependencies (9)

- [compare-versions](https://npm.io/package/compare-versions.md) ^6.1.1
- [@eslint-react/ast](https://npm.io/package/@eslint-react/ast.md) 5.20.3
- [@eslint-react/jsx](https://npm.io/package/@eslint-react/jsx.md) 5.20.3
- [@eslint-react/var](https://npm.io/package/@eslint-react/var.md) 5.20.3
- [@eslint-react/core](https://npm.io/package/@eslint-react/core.md) 5.20.3
- [@eslint-react/eslint](https://npm.io/package/@eslint-react/eslint.md) 5.20.3
- [@eslint-react/shared](https://npm.io/package/@eslint-react/shared.md) 5.20.3
- [@typescript-eslint/types](https://npm.io/package/@typescript-eslint/types.md) ^8.70.0
- [@typescript-eslint/utils](https://npm.io/package/@typescript-eslint/utils.md) ^8.70.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 5.20.3 (latest) — 2026-09-21
- 5.12.0-beta.2 (beta) — 2026-07-07
- 5.8.7-next.1 (next) — 2026-05-28
- 4.2.1-rc.1 (rc) — 2026-04-01
- 5.20.2 — 2026-09-20
- 5.20.1 — 2026-09-20
- 5.20.0 — 2026-09-19
- 5.19.1 — 2026-09-14
- 5.19.0 — 2026-09-06
- 5.18.10 — 2026-09-06
- 5.18.9 — 2026-09-06
- 5.18.8 — 2026-09-05
- 5.18.7 — 2026-09-02
- 5.18.6 — 2026-08-13
- 5.18.5 — 2026-08-13
- … 2570 more at https://npm.io/package/eslint-plugin-react-dom/versions

## README

# eslint-plugin-react-dom

DOM specific rules for React DOM.

## Install

```sh
# npm
npm install --save-dev eslint-plugin-react-dom
```

## Setup

```ts
import js from "@eslint/js";
import reactDom from "eslint-plugin-react-dom";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";

export default defineConfig(
  {
    files: ["**/*.{ts,tsx}"],
    extends: [
      js.configs.recommended,
      tseslint.configs.recommended,
      // Add configs from eslint-plugin-react-dom
      reactDom.configs.recommended,
    ],
    rules: {
      // Put rules you want to override here
      "react-dom/no-dangerously-set-innerhtml": "warn",
    },
  },
);
```

## Rules

<https://eslint-react.xyz/docs/rules#dom-rules>

---
_Source: https://npm.io/package/eslint-plugin-react-dom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
