eslint-plugin-snakecase

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-snakecase

Weekly Downloads

10

Version

0.0.1

License

MIT

Last publish

Collaborators

  • deecewan