Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More →
Socket
Book a DemoSign in
Socket

eslint-plugin-react-dom

Package Overview
Dependencies
Maintainers
1
Versions
2411
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
3.0.0-rc.4
Version published
Weekly downloads
749K
-16.3%
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 dom 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
      dom.configs.recommended,
    ],
    rules: {
      // Put rules you want to override here
      "react-dom/no-dangerously-set-innerhtml": "warn",
    },
  },
);

Rules

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

Keywords

react

FAQs

Package last updated on 14 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts