eslint-plugin-underscore_case

0.1.3 • Public • Published

eslint-plugin-underscore_case

ESLint plugin to enforce "underscore_case" (different from snake_case).

What is underscore_case

underscore_case is similar to snake_case but allows uppercase characters.

Why

I'm not a massive fan of this style, but I am a massive fan of consistency.

Examples of underscore_case

The following two are valid underscore_case:

Hello_World
hello_world

Please note that: snake_case is also valid underscore_case.

Usage

yarn add --dev eslint-plugin-underscore_case
// .eslintrc.json
"plugins"[
  "underscore_case"
],
"rules"{
  "underscore_case/underscore_case": [
    "error",
    "always"
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-underscore_case

Weekly Downloads

363

Version

0.1.3

License

MIT

Last publish

Collaborators

  • tylerlong