https://github.com/opentable/eslint-config-opentable
Extends eslint-config-airbnb-base with OpenTable's internal preferences.
https://github.com/opentable/eslint-config-opentable
Last synced: 28 days ago
JSON representation
Extends eslint-config-airbnb-base with OpenTable's internal preferences.
- Host: GitHub
- URL: https://github.com/opentable/eslint-config-opentable
- Owner: opentable
- Created: 2016-02-19T16:07:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-14T15:44:03.000Z (almost 3 years ago)
- Last Synced: 2025-05-02T06:19:45.190Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 6
- Watchers: 28
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# eslint-config-opentable [](https://travis-ci.org/opentable/eslint-config-opentable)
This package provides OpenTable's .eslintrc as an extensible shared config. We extend [eslint-config-airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base).
## Usage
The export lints ES6/2015+. It requires `eslint` and `eslint-plugin-import`.
1. `npm install --save-dev eslint-config-opentable eslint`
2. add `"extends": "opentable"` to your .eslintrcSee [Airbnb's Javascript styleguide](https://github.com/airbnb/javascript) and
the [ESlint config docs](http://eslint.org/docs/user-guide/configuring#extending-configuration-files)
for more information.## Dependencies
Note that ESLint 3.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.
- [18.12](https://github.com/airbnb/javascript#whitespace--max-len) Max line length: 100 - **Increased to 120**
> Why? We just wanted to allow longer lines.
- [19.2](https://github.com/airbnb/javascript#commas--dangling) Comma dangle - **No**
> Why? We found the extra comma distracting.
- [22.3](https://github.com/airbnb/javascript#naming--PascalCase) 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.
- [Ward Ruth](mailto:[email protected])