ESLint config
npm install eslint-config-ebayThis package provides eBay's .eslintrc as a shared npm module. This is similar to that of airbnb's extensible shared config.
There are two ESLint configurations available.
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
1. npm install --save-dev eslint-config-ebay eslint
2. add "extends": "ebay/legacy" to your .eslintrc
git clone https://github.com/ebay/eslint-config-ebay.git
and point the config to
1. For ES5 and below
2. ES6 included
For example, in Sublime Text editor add the below in SublimeLinter.sublime-settings file
``json``
"linters": {
"eslint": {
"@disable": false,
"args": [
"-c",
"/Users/someUser/eslint-config-ebay/index.js"
],
"excludes": []
}
}