3.2.0 • Published 9 years ago
@gakimball/eslint-config v3.2.0
eslint-config
Don't tell me how to live my life
I'm horribly pedantic when it comes to writing code.
Installation
npm install @gakimball/eslint-config --save-devUsage
In your .eslintrc:
{
"extends": "@gakimball"
}Overview
Extends the default eslint config, parses with Babel, and adds the import plugin. Includes these hot rules:
- Two spaces for indentation.
- Single quotes.
- More rigit JSDoc enforcement.
- Allow functions to be defined after they're first referenced. (Yay hoisting!)
if/elsego on separate lines. (This is my stupid hill and I will die on it.)- Consistent return values optional.
- Prefer
const, thenlet, but nevervar. - Capitalize the first word in a comment.
- Put spaces around inline objects.
- Always use
===and!==. - Class methods must use
this(otherwise they can be static).
Local Development
git clone https://github.com/gakimball/eslint-config
cd eslint-configLicense
MIT © Geoff Kimball