New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-react-dom

Package Overview
Dependencies
Maintainers
0
Versions
1004
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 React DOM related rules.

1.28.0-next.5
Source
npm
Version published
Weekly downloads
215K
-6.66%
Maintainers
0
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

// 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

Keywords

react

FAQs

Package last updated on 26 Feb 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