This package provides OpenTable's .eslintrc as an extensible shared config. We extend eslint-config-airbnb.
The export lints ES6/2015+ and React/JSX. It requires eslint
.
npm install --save-dev eslint-config-opentable eslint
- add
"extends": "opentable"
to your.eslintrc
See Airbnb's Javascript styleguide and the ESlint config docs for more information.
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.
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.
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.