1.0.0 • Published 8 years ago
@chtijs/eslint-config v1.0.0
eslint-config
Write consistency JavaScript without losing your brain
Installation
npm install @chtijs/eslint-config --save-dev
Usage
In your .eslintrc
:
{
"extends": "@chtijs"
}
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
/else
go on separate lines.- 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/chtijs/eslint-config
cd eslint-config
License
MIT © Hacked from Geoff Kimball
1.0.0
8 years ago