1.4.0 • Published 3 months ago

eslint-plugin-todo-comment v1.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

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"
  }
}
1.2.0

3 months ago

1.4.0

3 months ago

1.3.0

3 months ago

1.1.0

5 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.1.0

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago