Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-ebay

Package Overview
Dependencies
Maintainers
15
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-ebay

ESLint config

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
increased by196.42%
Maintainers
15
Weekly downloads
 
Created
Source

eslint-config-ebay

This package provides eBay's .eslintrc as a shared npm module. This is similar to that of airbnb's extensible shared config.

Usage

There are two ESLint configurations available.

eslint-config-ebay

The default export contains all of our ESLint rules, including EcmaScript 6+.

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

eslint-config-ebay/legacy

Lints ES5 and below.

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

IDE Integration

Install the ESLint validator plugin in your favorite text editor. Next step is to point the eslint config to the rules in this repo. To do that, clone the repo

git clone https://github.com/ebay/eslint-config-ebay.git

and point the config to

  1. For ES5 and below <path to repo>/eslint-config-ebay/legacy.js
  2. ES6 included <path to repo>/eslint-config-ebay/index.js

For example, in Sublime Text editor add the below in SublimeLinter.sublime-settings file

"linters": {
        "eslint": {
            "@disable": false,
            "args": [
                "-c",
                "/Users/someUser/eslint-config-ebay/index.js"
            ],
            "excludes": []
        }
  }

Keywords

FAQs

Package last updated on 13 Mar 2020

Did you know?

Socket

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc