eslint-plugin-const-hzw
v1.0.0
Published
Check for const case
Downloads
2
Maintainers
Readme
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