Enforce snake_case on variables and function names
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.
yarn add -D eslint-plugin-snakecase
// .eslintrc
{
// ...
"plugins": [
"snakecase"
],
"rules": {
"snakecase/snakecase": "error"
}
}