eslint-plugin-strict-case

1.0.3 • Public • Published

eslint-plugin-strict-case

Enforce case for variable names.

Installation

$ npm i -D eslint eslint-plugin-strict-case

or

$ yarn add -D eslint eslint-plugin-strict-case

Note: If you installed ESLint globally then you must also install eslint-plugin-strict-case globally.

Usage

In your .eslintrc, set the es6 environment configuration, add strict-case to the plugins section, and configure the rules you want to use under the rules section.

{
    "env": {
        "es6": true,
    },
    "plugins": [
        "strict-case"
    ],
    "rules": {
        "strict-case/class": "error"
    }
}

Or you can use the recommended configuration instead.

{
    "extends": [
        "plugin:strict-case/recommended"
    ]
}

Supported Rules

  1. strict-case/class: Checks if the name of a class starts with an uppercase letter.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i eslint-plugin-strict-case

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.3 kB

Total Files

5

Last publish

Collaborators

  • s14k51