Nodding Previously Managed

    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.

    Install

    npm i eslint-plugin-strict-case

    DownloadsWeekly Downloads

    449

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • s14k51