JSPM

  • Created
  • Published
  • Downloads 5225
  • Score
    100M100P100Q124019F
  • License Unlicense

Check for const case

Package Exports

  • eslint-plugin-const-case

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-const-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dependencies LCommit

Downloads NPM

Size install size

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;

const foo = ['bar', 42];
const foo = {bar: 42, baz: 'qux'};
const foo = 1000 * 60 * 10;
const foo = `42 ${bar}`;
const foo = bar();
const foo = bar ? baz : 42;
const foo = bar.baz();
const foo = bar => baz;
const foo = {bar: baz};
const foo = [bar, baz, 42];