1.0.0 • Published 1 year ago

eslint-plugin-const-hzw v1.0.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
1 year ago

Installation

$ npm i eslint eslint-plugin-const-case --save-dev

Usage

Add const-case to the .eslintrc configuration file.

{
    'plugins': [
        'const-case'
    ],
    'rules': {
        'const-case/uppercase': 'error'
    }
}

Rule Details

Examples of correct code for this rule:

const FOO = 'bar';
const FOO = 42;
const FOO = -42;
// else with lowercase