eslint-plugin-naming-convention

0.1.3 • Public • Published

eslint-plugin-naming-convention

ESLint plugin for enforcing naming conventions on variables and function names.

Installation

npm i -D eslint-plugin-naming-convention

Configuration

Add eslint-plugin-naming-convention to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["naming-convention"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "naming-convention/boolean-var-naming-convention": [
      "error",
      {
        "prefixes": ["is", "has"]
      }
    ]
  }
}

Rules

🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.

Name                          Description 🔧 💡
boolean-var-naming-convention Enforce the addition of a specified prefix to boolean variable names 🔧 💡

License

eslint-plugin-naming-convention is licensed under the MIT License.

Package Sidebar

Install

npm i eslint-plugin-naming-convention

Weekly Downloads

124

Version

0.1.3

License

MIT

Unpacked Size

9.14 kB

Total Files

7

Last publish

Collaborators

  • takagimeow