Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tylerlong/eslint-plugin-underscore_case

ESLint plugin to enforce "underscore_case" (different from snake_case).
https://github.com/tylerlong/eslint-plugin-underscore_case

eslint snake-case underscore

Last synced: 16 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```

```json
// .eslintrc.json
"plugins": [
"underscore_case"
],
"rules": {
"underscore_case/underscore_case": [
"error",
"always"
]
}
```