Skip to content

๐Ÿ”Œ An ESLint plugin to prevent TODO comments with expired dates.

License

Notifications You must be signed in to change notification settings

maxprilutskiy/eslint-plugin-no-expired-todo-comments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

eslint-plugin-no-expired-todo-comments

๐ŸŽ‰ An ESLint plugin that prevents TODO comments with expired dates! ๐ŸŽ‰

Overview

The eslint-plugin-no-expired-todo-comments is an ESLint plugin that provides a new rule for detecting TODO comments with expired dates. This plugin ensures that you don't have any outdated TODO comments in your codebase, helping you keep your code clean and organized.

Inspired by @parker_codes's parker-codes/todo-by, check it out too!

Installation

You can install the eslint-plugin-no-expired-todo-comments plugin using npm:

npm install eslint-plugin-no-expired-todo-comments --save-dev
# or
yarn add eslint-plugin-no-expired-todo-comments --dev
# or
pnpm add eslint-plugin-no-expired-todo-comments --save-dev

Usage

Once installed, you can use the no-expired-todo-comments rule in your ESLint configuration:

// .eslintrc.js
module.exports = {
  plugins: ["no-expired-todo-comments"],
  rules: {
    "no-expired-todo-comments/no-expired-todo-comments": "error",
  },
};

Now, whenever you have a TODO comment with an expired date in your codebase, ESLint will raise an error:

// This will raise an error
// TODO: 2020-01-01: This is an expired TODO comment

As simple as that!

Contributing

Contributions from the community are very much welcome! If you encounter any bugs or issues, please open an issue on the project's GitHub page. If you'd like to contribute code, please fork the project and submit a pull request with your changes.

License

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

About

๐Ÿ”Œ An ESLint plugin to prevent TODO comments with expired dates.

Topics

Resources

License

Stars

Watchers

Forks