eslint-plugin-todo-comment
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

eslint-plugin-todo-comment

This is a rules to encourage the entry of ticket URLs in TODO comments.

Rule Details

This rule reports invalid TODO comment.

✗ BAD: No ticket url

// TODO: refactor
const x = () => 1

✓ GOOD:: With ticket url

// TODO: refactor
// https://ticket.com/1,
const x = () => 1

Installation

Add package

# npm
npm i -D eslint-plugin-todo-comment

# yarn
yarn add -D eslint-plugin-todo-comment

Update your eslint config

{
  "plugins": [
    "todo-comment"
  ],
  "rules": {
    "todo-comment/ticket-url": "error"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-todo-comment

Weekly Downloads

1,668

Version

1.4.1

License

MIT

Unpacked Size

3.62 kB

Total Files

3

Last publish

Collaborators

  • toyb0x