Socket
Socket
Sign inDemoInstall

eslint-config-opentable

Package Overview
Dependencies
237
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-opentable

This package provides OpenTable's .eslintrc as an extensible shared config.


Version published
Weekly downloads
24
decreased by-77.14%
Maintainers
4
Install size
16.9 MB
Created
Weekly downloads
 

Readme

Source

OpenTable

eslint-config-opentable Build Status

This package provides OpenTable's .eslintrc as an extensible shared config. We extend 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 .eslintrc

See Airbnb's Javascript styleguide and the ESlint config docs 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 Max line length: 100 - Increased to 120

    Why? We just wanted to allow longer lines.

  • 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.

Keywords

FAQs

Last updated on 03 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc