0.2.0 • Published 3 years ago
eslint-plugin-no-new-date v0.2.0
eslint-plugin-no-new-date
Disallow new Date().
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-no-new-date:
npm install eslint-plugin-no-new-date --save-devUsage
Add no-new-date to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"no-new-date"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"no-new-date/rule-name": 2
}
}Supported Rules
- Fill in provided rules here