Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Latest commit

 

History

History
31 lines (21 loc) · 855 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 855 Bytes

Interactive Things ESLint Config

We (mostly) structure and lint our JS code according to AirBnB's JavaScript styleguide. Exceptions are noted below.

Usage

npm install eslint-config-interactivethings --save-dev

In your project's .eslintrc:

{
  "extends": "interactivethings"
}

Override any rules which don't fit your project.

Differences to AirBnB config

  • JSX single quotes
  • Capitalized functions don't need to be used with new. E.g. const foo = Immutable.Map(); should be allowed.
  • Allows the __DEV__ global

Development

  • Create single commits for each rule change, and describe the reason for the change in the commit message (why not just what).
  • List any deviations from AirBnB's style in this README
  • Create a new version using npm version x.x.x