🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

eslint-plugin-comment-prompt

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-comment-prompt

commit code for prompt comment

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

eslint-plugin-comment-prompt

commit code for prompt comment

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-comment-prompt:

npm install eslint-plugin-comment-prompt --save-dev

Usage

Then configure the rules you want to use under the rules key.

import commentPrompt from "eslint-plugin-comment-prompt";

export default [
    {
        plugins: {
             'comment-prompt': commentPrompt
        },
        rules: {
            // 默认 每 20行 代码 需要加一行注释 (有效代码注释比 20)
            "comment-prompt/rule-name": ["error", 20]
        }
    }
];

Keywords

eslint

FAQs

Package last updated on 03 Mar 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