eslint-config-seekingalpha-base

8.4.0 • Public • Published

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.57.0 eslint-plugin-array-func@4.0.0 eslint-plugin-import@2.29.1 eslint-plugin-promise@6.2.0 eslint-plugin-unicorn@53.0.0 --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 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:

// for seekingalpha-base
{
  extends: [
    'seekingalpha-base'
  ]
}

License

MIT © SeekingAlpha

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i eslint-config-seekingalpha-base

    Weekly Downloads

    1,921

    Version

    8.4.0

    License

    MIT

    Unpacked Size

    96 kB

    Total Files

    19

    Last publish

    Collaborators

    • alexkoval
    • dmytro-vasylenko
    • stanislavh