Package Exports
- eslint-config-seekingalpha-base
- eslint-config-seekingalpha-base/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-seekingalpha-base) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-config-seekingalpha-base
This package includes the shareable ESLint config used by SeekingAlpha.
Installation
Install ESLint and all Peer Dependencies:
npm install eslint@8.24.0 eslint-plugin-array-func@3.1.7 eslint-plugin-import@2.26.0 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.0.1 eslint-plugin-unicorn@44.0.0 --save-devInstall SeekingAlpha shareable ESLint:
npm install eslint-config-seekingalpha-base --save-devUsage
This shareable config includes all ESLint rules including ECMAScript 6 features and set of legacy rules. We also extend our configuration with following plugins:
- eslint-plugin-import
- eslint-plugin-array-func
- eslint-plugin-no-use-extend-native
- eslint-plugin-promise
- eslint-plugin-unicorn
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 setsbrowseras default environment.seekingalpha-base/node- exports only Node.js related rules for ESLint and mentioned plugins. It also setsnodeas default environment.
Simply extend the .eslintrc.js in your project with relevant configuration:
// for seekingalpha-base
{
extends: [
'seekingalpha-base'
]
}License
MIT © SeekingAlpha