Skip to content

Extends eslint-config-airbnb with OpenTable's internal preferences.

Notifications You must be signed in to change notification settings

jrolfs/eslint-config-opentable

 
 

Repository files navigation

eslint-config-opentable Build Status

This package provides OpenTable's .eslintrc as an extensible shared config. We extend eslint-config-airbnb.

Usage

The export lints ES6/2015+ and React/JSX. It requires eslint.

  1. npm install --save-dev eslint-config-opentable eslint
  2. add "extends": "opentable" to your .eslintrc

See Airbnb's Javascript styleguide and the ESlint config docs for more information.

Dependencies

Note that ESLint 4.0+, which is a dependency of this config, requires Node 4+. For support in Node <4, use eslint-config-opentable version 4.x.

Differences with AirBnB

There are a few minor differences between this config and AirBnB's. Links are to AirBnB's styleguide.

  • 19.2 Comma dangle - No

    Why? We found the extra comma distracting.

  • 22.3 Use PascalCase only when naming constructors or classes. - Yes, but one exception

    Why? We added $.Deferred as a common exception, since it should not be used with the new keyword.

Maintainers

This repo doesn't change too often, so issues or requests may not be noticed quickly. Please contact the maintainers directly to call an issue to their attention.

About

Extends eslint-config-airbnb with OpenTable's internal preferences.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%