1.0.0 • Published 4 years ago
@scout-pd/eslint-config v1.0.0
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 --devYes, this is a large number of packages. This is due to a known limitation in ESLint.
This long list of dependencies includes:
- ESLint
- Peer dependencies of @scout-pd/eslint-config
- @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-pdand@scout-pd/eslint-configboth work. See sharing configurations
1.0.0
4 years ago