Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
eslint-plugin-todos
Advanced tools
Contains single rule that detects TODO (or similar) comments which are not documented inside issue tracker (eq. have a link to an existing issue).
Contains single rule that detects TODO (or similar) comments which are not documented inside issue tracker (eq. have a link to an existing issue).
The link to the issue tracker can be either configured using url
property of the rule's configuration, or is
automatically detected from the package.json
using either bugs
or repository
properties.
This plugin is based on the no-warning-comments rule. Check out original documentation for no-warning-comments.
// TODO: We may need to make this thing better
// TODO: Function fooBar need to return something good
// TODO: Wow!
// TODO: Needs refactor https://github.com/auhau/eslint-plugin-todos/issues/4
// TODO: Waiting for https://github.com/auhau/eslint-plugin-todos/issues/2
npm install -D eslint-plugin-todos
module.exports = {
"plugins": ["todos"],
"rules": {
'todos/only-documented-todos': [
'warn', {
'terms': ['todo'],
'location': 'start',
'url': 'https://github.com/auhau/eslint-plugin-todos'
}
],
}
}
This rule was extended using eslint-plugin-output-todo-comments by finom
FAQs
Contains single rule that detects TODO (or similar) comments which are not documented inside issue tracker (eq. have a link to an existing issue).
We found that eslint-plugin-todos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.