-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
52 lines (52 loc) · 1.19 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
48
49
50
51
52
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
ignorePatterns:
- cache*/
- out/
globals:
Atomics: readonly
SharedArrayBuffer: readonly
overrides:
- files: ['*(!.d).ts']
parserOptions:
project:
- tsconfig.json
rules:
"@typescript-eslint/no-floating-promises": error
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
- jest
rules:
indent:
- error
- 4
- SwitchCase: 1
linebreak-style:
- error
- unix
no-return-await: 'off' # optimization only and harder to read
no-trailing-spaces: error
no-unnecessary-initializer: 'off' # readability
quotes: 'off'
require-yield: 'off'
semi:
- error
- never
"@typescript-eslint/explicit-module-boundary-types": 'off'
"@typescript-eslint/no-explicit-any":
- warn
- ignoreRestArgs: true
"@typescript-eslint/no-unused-vars":
- warn
- args: none
"@typescript-eslint/return-await":
- error
- always
"jest/no-disabled-tests": "warn"
"jest/no-focused-tests": "error"
"jest/no-identical-title": "error"
"jest/prefer-to-have-length": "warn"
"jest/valid-expect": "error"