eslint-plugin-react-debug
TypeScript icon, indicating that this package has built-in type declarations

1.49.0 • Public • Published

eslint-plugin-react-debug

Debugging rules.

These rules are useful for static analysis, code transformation, or when building custom tooling that needs to identify specific React patterns.

Install

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

Setup

// eslint.config.js

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

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

Rules

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

Package Sidebar

Install

npm i eslint-plugin-react-debug

Weekly Downloads

232,434

Version

1.49.0

License

MIT

Unpacked Size

28.6 kB

Total Files

7

Last publish

Collaborators

  • rel1cx