forked from authts/oidc-client-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
69 lines (68 loc) · 1.57 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
plugins:
- "@typescript-eslint"
- testing-library
env:
browser: true
node: true
parserOptions:
ecmaVersion: 2020
sourceType: module
extends:
- eslint:recommended
- plugin:testing-library/dom
rules:
comma-dangle:
- error
- always-multiline
consistent-return: error
indent:
- error
- 4
- SwitchCase: 1
quotes: error
semi: error
keyword-spacing: error
space-before-blocks: error
no-multiple-empty-lines:
- error
- max: 1
maxBOF: 0
maxEOF: 0
no-multi-spaces: error
overrides:
- files: ["*.ts", "*.tsx"]
parserOptions:
project:
- ./tsconfig.json
extends:
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
rules:
indent: "off"
semi: "off"
no-return-await: "off"
"@typescript-eslint/indent":
- error
- 4
- SwitchCase: 1
"@typescript-eslint/member-delimiter-style": error
"@typescript-eslint/object-curly-spacing":
- error
- always
"@typescript-eslint/return-await":
- error
- always
"@typescript-eslint/semi": error
# custom rules to fix code style
"@typescript-eslint/require-await": "off"
"@typescript-eslint/no-unsafe-argument": "off"
"@typescript-eslint/no-unsafe-assignment": "off"
- files: src/**/*
env:
node: false
- files: [src/**/*.test.*, test/**/*]
env:
jest: true
rules:
"@typescript-eslint/no-non-null-assertion": "off"
"@typescript-eslint/unbound-method": "off"