eslint-config-ebay
v1.2.0
Published
ESLint config
Downloads
2,138
Readme
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+.
npm install --save-dev eslint-config-ebay eslint
- add
"extends": "ebay"
to your .eslintrc
eslint-config-ebay/legacy
Lints ES5 and below.
npm install --save-dev eslint-config-ebay eslint
- 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
- For ES5 and below
<path to repo>/eslint-config-ebay/legacy.js
- 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": []
}
}