1.0.4 • Published 5 years ago

eslint-plugin-datelint v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

eslint-plugin-datelint

对日期格式进行验证

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-datelint:

$ npm install eslint-plugin-datelint --save-dev

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

Usage

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

{
    "plugins": [
        "datelint"
    ]
}

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

{
    "rules": {
        "datelint/date-rule-link": "error"
    }
}

Supported Rules

  • Fill in provided rules here
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.0

5 years ago