Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

k03mad/eslint-plugin-const-case

Repository files navigation

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

About

ESLint plugin for checking const case

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published