Socket
Socket
Sign inDemoInstall

eslint-plugin-eslint-comments

Package Overview
Dependencies
88
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-eslint-comments

Additional ESLint rules for ESLint directive comments.


Version published
Weekly downloads
2.3M
increased by1.76%
Maintainers
1
Install size
94.3 kB
Created
Weekly downloads
 

Package description

What is eslint-plugin-eslint-comments?

The eslint-plugin-eslint-comments npm package provides a set of linting rules for ESLint directive comments (e.g., /* eslint-disable */, /* eslint-enable */, etc.). It helps in managing and enforcing best practices for the use of ESLint directive comments within your codebase. This includes rules for preventing unused or unnecessary disabling of rules, ensuring proper enable/disable pairs, and more.

What are eslint-plugin-eslint-comments's main functionalities?

Disallow Unused ESLint Disable Comments

This rule helps in identifying ESLint disable comments that are unnecessary because the rules they are disabling are not actually reported. It helps in keeping the codebase clean and avoiding confusion about why a rule was disabled.

"eslint-comments/no-unused-disable": "error"

Require Description in ESLint Directive Comments

Enforces that all ESLint directive comments include a description, making it clearer why a rule was disabled or enabled at a specific point in the code. This is useful for maintaining code quality and understanding the context behind disabling a rule.

"eslint-comments/require-description": ["error", { "ignore": [] }]

Disallow Duplicate Disable Comments

Prevents multiple ESLint disable comments for the same rule on consecutive lines. This rule ensures that disable comments are used efficiently and are not repeated unnecessarily.

"eslint-comments/no-duplicate-disable": "error"

Other packages similar to eslint-plugin-eslint-comments

Readme

Source

eslint-plugin-eslint-comments

npm version Downloads/month Build Status codecov Dependency Status

Additional ESLint rules for ESLint directive comments (e.g. //eslint-disable-line).

📖 Usage

🚥 Semantic Versioning Policy

eslint-plugin-eslint-comments follows semantic versioning and ESLint's Semantic Versioning Policy.

📰 Changelog

🍻 Contributing

Welcome contributing!

Please use GitHub's Issues/PRs.

Development Tools

  • npm test runs tests and measures coverage.
  • npm run build updates README.md, index.js, and the header of all rule's documents.
  • npm run clean removes the coverage of the last npm test command.
  • npm run coverage shows the coverage of the last npm test command.
  • npm run lint runs ESLint for this codebase.
  • npm run watch runs tests and measures coverage when source code are changed.

Keywords

FAQs

Last updated on 25 May 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc