-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
47 lines (46 loc) · 1.52 KB
/
.eslintrc.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
root: true
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
- deprecation
overrides:
- files: [ "*.ts" ]
excludedFiles: [ "*.d.ts" ]
parserOptions:
project: ./tsconfig.json
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:@typescript-eslint/strict
- plugin:eslint-comments/recommended
rules:
no-constant-condition:
- error
- checkLoops: false
no-debugger: warn # no error
no-inner-declarations: off # allow functions inside blocks
no-loss-of-precision: warn
no-promise-executor-return: off
no-mixed-spaces-and-tabs: off # allow smart tabs
quotes:
- warn
- single
- avoidEscape: true
"@typescript-eslint/explicit-module-boundary-types": off
"@typescript-eslint/no-non-null-assertion": off
"@typescript-eslint/no-unnecessary-condition":
- warn
- allowConstantLoopConditions: true
"@typescript-eslint/strict-boolean-expressions":
- warn
- allowNullableString: true
"@typescript-eslint/require-await": warn
"@typescript-eslint/no-require-imports": warn
"@typescript-eslint/prefer-readonly": warn
eslint-comments/no-unused-disable: warn
eslint-comments/disable-enable-pair:
- error
- allowWholeFile: true
deprecation/deprecation: error