Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-todos

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-todos

Contains single rule that detects TODO (or similar) comments which are not documented inside issue tracker (eq. have a link to an existing issue).

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-plugin-todos npm version

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.

Fails
// TODO: We may need to make this thing better
// TODO: Function fooBar need to return something good
// TODO: Wow!
Passes
// TODO: Needs refactor https://github.com/auhau/eslint-plugin-todos/issues/4
// TODO: Waiting for https://github.com/auhau/eslint-plugin-todos/issues/2

Install

npm install -D eslint-plugin-todos

Usage

module.exports = {
    "plugins": ["todos"],
    "rules": {
        'todos/only-documented-todos': [
            'warn', {
                'terms': ['todo'],
                'location': 'start',
                'url': 'https://github.com/auhau/eslint-plugin-todos'
            }
        ],
    }
}

Credit

This rule was extended using eslint-plugin-output-todo-comments by finom

FAQs

Package last updated on 30 Mar 2020

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc