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

eslint-plugin-react-x

Package Overview
Dependencies
Maintainers
1
Versions
2392
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-x

A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.

Source
npmnpm
Version
5.18.7
Version published
Weekly downloads
1.1M
-20.13%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-react-x

Composable ESLint rules for libraries and frameworks that use React as a UI runtime.

Install

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

Setup

import js from "@eslint/js";
import reactX from "eslint-plugin-react-x";
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-x
      reactX.configs.recommended,
    ],
    rules: {
      // Put rules you want to override here
      "react-x/no-class-component": "warn",
    },
  },
);

Rules

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

Keywords

react

FAQs

Package last updated on 02 Sep 2026

Related posts