eslint-config-seekingalpha-base
This package includes the shareable ESLint config used by SeekingAlpha.
Installation
Install ESlint and all Peer Dependencies with NPM:
npm install eslint@5.16.0 eslint-plugin-array-func@3.1.3 eslint-plugin-import@2.18.2 eslint-plugin-jsdoc@15.7.2 eslint-plugin-no-use-extend-native@0.4.1 eslint-plugin-promise@4.2.1 eslint-plugin-unicorn@9.1.1 --save-dev
or Yarn:
yarn add --dev eslint@5.16.0 eslint-plugin-array-func@3.1.3 eslint-plugin-import@2.18.2 eslint-plugin-jsdoc@15.7.2 eslint-plugin-no-use-extend-native@0.4.1 eslint-plugin-promise@4.2.1 eslint-plugin-unicorn@9.1.1
Install SeekingAlpha shareable ESLint:
npm install eslint-config-seekingalpha-base --save-dev
For Yarn:
yarn add --dev eslint-config-seekingalpha-base
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 sets browser
as default environment.seekingalpha-base/node
- exports only Node.js related rules for ESLint and mentioned plugins. It also sets node
as default environment.
Simply extend the .eslintrc.js in your project with relevant configuration:
{
extends: [
'seekingalpha-base'
]
}
License
MIT © SeekingAlpha