@scout-pd/eslint-config

1.0.0 • Public • Published

Scout PD Eslint config

Eslint configuration for projects on the Scout PD team at iOLAP

An ESLint shareable config for TypeScript that has TypeScript specific rules from @typescript-eslint/eslint-plugin.

Usage

yarn add eslint@^7.0.0 @typescript-eslint/eslint-plugin@^4.0.0 @typescript-eslint/parser@^4.0.0 eslint-config-prettier@^8.0.0 eslint-plugin-prettier@^3.0.0 @scout-pd/eslint-config --dev

Yes, this is a large number of packages. This is due to a known limitation in ESLint.

This long list of dependencies includes:

  1. ESLint
  2. Peer dependencies of @scout-pd/eslint-config
  3. @typescript-eslint/eslint-plugin; ESLint rules for TypeScript.

Then add this to your .eslintrc:

{
  "parser": "@typescript-eslint/parser",
  "extends": "@scout-pd"
}

OR

.eslintrc.js:

module.exports = {
  parser: '@typescript-eslint/parser',
  extends: '@scout-pd',
};

N.B. @scout-pd and @scout-pd/eslint-config both work. See sharing configurations

Readme

Keywords

none

Package Sidebar

Install

npm i @scout-pd/eslint-config

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

3.22 kB

Total Files

3

Last publish

Collaborators

  • scout-pd