Skip to content

tylerlong/eslint-plugin-underscore_case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
  ]
}

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published