Skip to content

deecewan/eslint-plugin-snakecase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-snakecase

Enforce snake_case on variables and function names

Why

I work in a Ruby house so a lot of the JavaScript that we have has snake_case variable names as a holdover from Ruby.

This is to enforce a style, rather than just disabling camelcase. I'm not a massive fan of this style, but I am a massive fan of consistency.

Usage

yarn add -D eslint-plugin-snakecase
// .eslintrc
{
  // ...
  "plugins": [
    "snakecase"
  ],
  "rules": {
    "snakecase/snakecase": "error"
  }
}

About

Enforce snake_case on variables and function names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published