🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

eslint-plugin-react-dom

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
e

eslint-plugin-react-dom

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

1.38.0
99

Supply Chain Security

100

Vulnerability

85

Quality

96

Maintenance

100

License

Version published
Weekly downloads
189K
-27.68%
Maintainers
1
Weekly downloads
 
Created
Issues
25

eslint-plugin-react-dom

DOM specific rules for React DOM.

Install

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

Setup

// eslint.config.js

// @ts-check
import js from "@eslint/js";
import reactDom from "eslint-plugin-react-dom";
import tseslint from "typescript-eslint";

export default tseslint.config({
  files: ["**/*.ts", "**/*.tsx"],
  extends: [
    js.configs.recommended,
    tseslint.configs.recommended,
    reactDom.configs.recommended,
  ],
  languageOptions: {
    parser: tseslint.parser,
    parserOptions: {
      projectService: true,
    },
  },
  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

FAQs

Package last updated on 24 Mar 2025

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