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: 4 months ago
JSON representation
ESLint plugin to enforce "underscore_case" (different from snake_case).
- Host: GitHub
- URL: https://github.com/tylerlong/eslint-plugin-underscore_case
- Owner: tylerlong
- Created: 2017-03-09T02:30:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-09T05:47:25.000Z (over 8 years ago)
- Last Synced: 2025-02-27T15:38:36.375Z (5 months ago)
- Topics: eslint, snake-case, underscore
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
]
}
```