npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-plugin-todo-tickets

v1.4.0

Published

ESLint plugin to enforce TODO comments with ticket numbers

Readme

eslint-plugin-todo-tickets

ESLint plugin to enforce TODO comments with ticket numbers (JIRA, GitHub issues, etc.)

[!NOTE] Disclaimer 1: This plugin was initially vibe-coded in a rush, but I promise, I reviewed the code and tested it.

[!TIP] Disclaimer 2: Before I push this mess I found similar projects:

I should've googled things before, but yeah, here am I, procrastinating and re-inventing the wheel.

Installation

npm install --save-dev eslint-plugin-todo-tickets

Usage

Add todo-tickets to the plugins section of your .eslintrc configuration file:

{
  "plugins": ["todo-tickets"],
  "extends": ["plugin:todo-tickets/recommended"]
}

Or using eslint.config.mjs:

import js from '@eslint/js';
import todoTickets from 'eslint-plugin-todo-tickets';

export default [
  js.configs.recommended,
  ...todoTickets.configs['flat/recommended'],
  {
    files: ['**/*.js'],
    // rule customizations go here
  }
];

Suggestions and placeholder tickets

Set suggestPlaceholderWithTicket to enable ESLint suggestions that insert a placeholder ticket for you. When you provide a placeholder, the plugin will also infer the appropriate default ticket pattern (e.g., XYZ-000 locks onto the JIRA-style regex, #00 switches to GitHub issues). Example:

{
  "rules": {
    "todo-tickets/todo-tickets": [
      "error",
      {
        "suggestPlaceholderWithTicket": "XYZ-000",
        "keywords": ["TODO", "FIXME"]
      }
    ]
  }
}

Now, when a TODO is missing a ticket, ESLint will offer a suggestion to insert XYZ-000, making it easier to follow up later.

Screenshot of ESLint suggestion inserting XYZ-000

Configuration

You can customize the ticket patterns and keywords:

{
  "rules": {
    "todo-tickets/todo-tickets": ["error", {
      "ticketPatterns": [
        "[A-Z]{2,}-\\d+",  // JIRA format (e.g., ABC-123)
        "#\\d+"           // GitHub format (e.g., #42)
      ],
      "keywords": ["TODO", "FIXME", "BUG", "HACK"]
    }]
  }
}

Need the flat config version? Start with the snippet in the Usage section and add the same rule options shown above to the rules field for whichever file set you target.

Recommended configs at a glance

| Config key | When to use it | Notes | | --- | --- | --- | | plugin:todo-tickets/recommended | Classic .eslintrc style projects | Enables the rule with all default ticket patterns (JIRA + GitHub) | | todo-tickets/configs["flat/recommended"] | Flat config projects | Same defaults as above, ready to spread into your array | | todo-tickets/configs["flat/jira-recommended"] | JIRA-centric teams | Ships with a default placeholder ticket so autofix suggestions are enabled | | todo-tickets/configs["flat/github-recommended"] | GitHub Issue workflows | Uses #123 style patterns and placeholder suggestions |

Pick the preset closest to your workflow and override rule options only when you need something more specific.

Examples

Valid

// TODO ABC-123: Fix this issue
// FIXME #42: Something to fix
/* BUG ASMO-42: Important bug */
// HACK MCO-123: Temporary solution

Invalid

// TODO: Missing ticket
// FIXME: No ticket here
// TODO INVALID-TICKET: Invalid format

Contributing & Community

Contributions are welcome! Please read the CONTRIBUTING.md guide for setup tips, testing instructions, and the preferred workflow. By participating you agree to follow our Code of Conduct.

License

This project is licensed under the MIT License - see the LICENSE file for details.