Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sawyerh/eslint-plugin-todo-plz

Enforce consistent and maintainable TODO comments
https://github.com/sawyerh/eslint-plugin-todo-plz

eslint npm-package

Last synced: 4 days ago
JSON representation

Enforce consistent and maintainable TODO comments

Awesome Lists containing this project

README

        

# eslint-plugin-todo-plz

Enforce consistent and maintainable TODO comments.

![Screenshot](.github/assets/screenshot.png)

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-todo-plz`:

```
$ npm install eslint-plugin-todo-plz --save-dev
```

## Usage

Add `todo-plz` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
"plugins": ["todo-plz"]
}
```

Then configure the rules you want to use under the rules section.

```json
{
"rules": {
"todo-plz/ticket-ref": ["error", { "pattern": "PROJ-[0-9]+" }]
}
}
```

## Supported Rules

- [`ticket-ref`](docs/rules/ticket-ref.md)

## Inspiration

- Shoutout [`expiring-todo-comments`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/expiring-todo-comments.md) for showing me how to build my first ESLint rule.