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 🙏

© 2024 – Pkg Stats / Ryan Hefner

eslint-plugin-todo-notice

v1.0.1

Published

检测代码中的TODO或自定义注释内容是否过期或者已经到期

Downloads

6

Readme

eslint-plugin-todo-notice

检查代码中的TODO注释是否到期或者将要到期

show

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-todo-notice:

$ npm install eslint-plugin-todo-notice --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-todo-notice globally.

Usage

Add todo-notice to the plugins section of your .eslintrc configuration file or package.json. You can omit the eslint-plugin- prefix:

package.json demo

"eslintConfig": {
    "plugins": [
      "todo-notice"
    ],
    "rules": {
      "todo-notice/diy":1
    }
}

After the configuration is complete, you can see the prompts when coding and building

Formats that can be detected

// TODO: DDL 2020-4-28 提示自己的内容
// fixme: DDL 2020/4/28 提示自己的内容
// TODO: deadline 20200428 提示自己的内容
// fixme: deadline 20-4-28 提示自己的内容

or

/**
* TODO
* DDL 2020-5-19
* 提示自己的内容
*/

support date formats

For example, June 1, 2020 --- 2020-06-01

| format1 | demo | format2 | demo | format3 | demo | | :--------: | :--------: | :--------: | :--------: | :------: | :------: | | yyyy-mm-dd | 2020-06-01 | yyyy/mm/dd | 2020/06/01 | yyyymmdd | 20200601 | | | 2020-06-1 | | 2020/06/1 | | 200601 | | | 2020-6-01 | | 2020/6/01 | | | 20-06-01 | | 20/06/01 | | | 20-6-1 | | 20/6/1 | | | 20-6-01 | | 20/6/01 |

customize

You can customize the detected keywords

| key | type | comment | | :------: | :------: | :----------------------------------------: | | flag | string[] | The beginning of the detected comment | | ddl | string[] | The effective time of the detected comment | | warnline | string | warnline |

default value

"rules": {
    "todo-notice/diy":[1,{
      "flag": ["todo","fixme"],
      "ddl":  ["ddl","deadline"],
      "warnline": "7"
    }]
}