New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

eslint-plugin-react-dom

Package Overview
Dependencies
Maintainers
1
Versions
2581
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-dom

ESLint React's ESLint plugin for DOM related rules.

Source
npmnpm
Version
5.18.7
Version published
Weekly downloads
1.8M
73.96%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-react-dom

DOM specific rules for React DOM.

Install

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

Setup

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

Keywords

react

FAQs

Package last updated on 02 Sep 2026

Related posts