-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
26 lines (26 loc) · 945 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["tsconfig.json", "tests/tsconfig.json"]
},
"plugins": ["@typescript-eslint", "only-warn"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"overrides": [],
"rules": {
// TypeScript makes these safe & effective
"no-case-declarations": "off",
// This rule marks nameof as a warning which is annoying if
// using nameof heavily. Alternative is to keep this enabled and
// just disable ESLint around usage of nameof in codebase.
"@typescript-eslint/no-unsafe-call": "off",
// Same approach used by TypeScript noUnusedLocals
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }]
}
}