@scout-pd/eslint-config
v1.0.0
Published
eslint config for projects on the Scout PD team at iOLAP
Downloads
32
Readme
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:
- 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-pd
and@scout-pd/eslint-config
both work. See sharing configurations