Skip to content

armata007/eslint-plugin-disallow-keycodes-without-constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-disallow-keycodes-without-constants

Disallow keycodes without constants

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-disallow-keycodes-without-constants:

$ npm install eslint-plugin-disallow-keycodes-without-constants --save-dev

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

Usage

Add disallow-keycodes-without-constants to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "disallow-keycodes-without-constants"
    ]
}

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

{
    "rules": {
        "disallow-keycodes-without-constants/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

About

eslint-plugin-disallow-keycodes-without-constants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published