Skip to content

shiftpsh/eslint-plugin-no-new-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published