JSPM

eslint-plugin-react-debug

1.42.2-next.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 254635
  • Score
    100M100P100Q181623F
  • License MIT

ESLint React's ESLint plugin for debugging related rules.

Package Exports

  • eslint-plugin-react-debug
  • eslint-plugin-react-debug/package.json

Readme

eslint-plugin-react-debug

Debugging rules.

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