Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 600 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 600 Bytes

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