You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-react-x

Package Overview
Dependencies
Maintainers
1
Versions
1218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-x

4-7x faster composable ESLint rules for for libraries and frameworks that use React as a UI runtime.

1.52.3
latest
Source
npmnpm
Version published
Weekly downloads
298K
8.79%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-react-x

4-7x faster composable ESLint rules for for libraries and frameworks that use React as a UI runtime.

Install

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

Setup

// eslint.config.js

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

export default tseslint.config({
  files: ["**/*.ts", "**/*.tsx"],
  extends: [
    js.configs.recommended,
    tseslint.configs.recommended,
    react.configs.recommended,
  ],
  languageOptions: {
    parser: tseslint.parser,
    parserOptions: {
      projectService: true,
      tsconfigRootDir: import.meta.dirname,
    },
  },
  rules: {
    // Put rules you want to override here
    "react-x/no-class-component": "warn",
  },
});

Rules

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

Keywords

react

FAQs

Package last updated on 12 Jul 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