Detalhes do pacote

eslint-plugin-no-new-date

shiftpsh1.9kISC0.2.0

Disallow new Date().

eslint, eslintplugin, eslint-plugin

readme (leia-me)

eslint-plugin-no-new-date

Disallow new Date().

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-new-date:

npm install eslint-plugin-no-new-date --save-dev

Usage

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