Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

eslint-plugin-react-debug

Package Overview
Dependencies
Maintainers
1
Versions
2516
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-debug

ESLint React's ESLint plugin for debugging related rules.

Source
npmnpm
Version
1.8.3-next.3
Version published
Weekly downloads
461K
-22.68%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-react-debug

Debugging rules.

[!NOTE] This plugin is already included in @eslint-react/eslint-plugin. You don't need to install it separately if you are using @eslint-react/eslint-plugin.

Install

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

Setup

Add the plugin to your eslint.config.js:

// @ts-check

import js from "@eslint/js";
import reactDebug from "eslint-plugin-react-debug";

export default [
  js.configs.recommended,
  {
    files: ["**/*.{ts,tsx}"],
    plugins: [
      "react-debug": reactDebug,
      rules: {
        "react-debug/class-component": "warn",
        "react-debug/function-component": "warn",
        "react-debug/react-hooks": "warn",
      }
    ],
  },
];

Rules

RuleDescription💼💭
class-componentPrint all class components.🐞
function-componentPrint all function components.🐞
react-hooksPrint all react hooks.🐞

Keywords

eslint

FAQs

Package last updated on 03 Aug 2024

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