1.0.4 • Published 6 years ago
eslint-plugin-datelint v1.0.4
eslint-plugin-datelint
对日期格式进行验证
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-datelint:
$ npm install eslint-plugin-datelint --save-devNote: 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