eslint-config-seekingalpha-base
v8.13.0
Published
SeekingAlpha's sharable base ESLint config
Downloads
10,304
Readme
eslint-config-seekingalpha-base
This package includes the shareable ESLint config used by SeekingAlpha.
Installation
Install ESLint and all Peer Dependencies:
npm install [email protected] [email protected] [email protected] [email protected] [email protected] --save-dev
Install SeekingAlpha shareable ESLint:
npm install eslint-config-seekingalpha-base --save-dev
Usage
This shareable config includes all ESLint rules including ECMAScript 6 features and set of legacy rules. We also extend our configuration with following plugins:
We expose three configurations:
seekingalpha-base
- exports all avaliable ESLint rules and all rules of plugins above.seekingalpha-base/browser
- exports only browser related rules for ESLint and mentioned plugins. It also setsbrowser
as default environment.seekingalpha-base/node
- exports only Node.js related rules for ESLint and mentioned plugins. It also setsnode
as default environment.
Simply extend the .eslintrc.js in your project with relevant configuration:
// for seekingalpha-base
{
extends: [
'seekingalpha-base'
]
}
License
MIT © SeekingAlpha