@gakimball/eslint-config
Don't tell me how to live my life
Last updated 3 years ago by gakimball .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @gakimball/eslint-config 
SYNC missed versions from official npm registry.

eslint-config

Don't tell me how to live my life

npm

I'm horribly pedantic when it comes to writing code.

Installation

npm install @gakimball/eslint-config --save-dev

Usage

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/else go on separate lines. (This is my stupid hill and I will die on it.)
  • Consistent return values optional.
  • Prefer const, then let, but never var.
  • 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-config

License

MIT © Geoff Kimball

Current Tags

  • 3.2.0                                ...           latest (3 years ago)

5 Versions

  • 3.2.0                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 7
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |