Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@eslint-community/eslint-plugin-eslint-comments
Advanced tools
Additional ESLint rules for ESLint directive comments.
@eslint-community/eslint-plugin-eslint-comments is an ESLint plugin that provides rules for managing ESLint directive comments (e.g., `// eslint-disable`, `// eslint-enable`, `// eslint-disable-next-line`). It helps ensure that these comments are used correctly and consistently throughout your codebase.
Disallow unused eslint-disable comments
This feature ensures that `eslint-disable` comments are not left in the code if they are not actually disabling any rules. It helps keep the code clean and free of unnecessary comments.
/* eslint-disable no-unused-vars */
// eslint-disable-next-line no-console
console.log('Hello, world!');
/* eslint-enable no-unused-vars */
Require eslint-enable comments
This feature enforces that every `eslint-disable` comment is followed by a corresponding `eslint-enable` comment, ensuring that rules are only disabled for specific sections of code and not indefinitely.
/* eslint-disable no-console */
console.log('Hello, world!');
/* eslint-enable no-console */
Disallow eslint-disable comments without description
This feature requires that `eslint-disable` comments include a description explaining why the rule is being disabled. This helps provide context and justification for disabling rules, making the code more maintainable.
/* eslint-disable no-console -- needed for debugging */
console.log('Hello, world!');
/* eslint-enable no-console */
eslint-plugin-disable provides similar functionality by allowing you to disable specific ESLint rules for certain files or lines of code. However, it does not enforce the same level of strictness and consistency as @eslint-community/eslint-plugin-eslint-comments.
Additional ESLint rules for ESLint directive comments (e.g. //eslint-disable-line
).
@eslint-community/eslint-plugin-eslint-comments
follows semantic versioning and ESLint's Semantic Versioning Policy.
Welcome contributing!
Please use GitHub's Issues/PRs.
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.FAQs
Additional ESLint rules for ESLint directive comments.
The npm package @eslint-community/eslint-plugin-eslint-comments receives a total of 198,186 weekly downloads. As such, @eslint-community/eslint-plugin-eslint-comments popularity was classified as popular.
We found that @eslint-community/eslint-plugin-eslint-comments demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.