forked from authts/oidc-client-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.yml
More file actions
65 lines (64 loc) · 1.63 KB
/
.eslintrc.yml
File metadata and controls
65 lines (64 loc) · 1.63 KB
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
plugins:
- "@typescript-eslint"
- testing-library
env:
browser: true
node: true
parserOptions:
ecmaVersion: 2020
sourceType: module
extends:
- eslint:recommended
- plugin:testing-library/dom
rules:
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
maxEOF: 0
overrides:
- files: ["*.ts", "*.tsx"]
parserOptions:
project:
- ./tsconfig.json
- ./test/unit/tsconfig.json
extends:
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
rules:
indent: "off"
"@typescript-eslint/indent":
- error
- 4
- SwitchCase: 1
"@typescript-eslint/member-delimiter-style": error
"@typescript-eslint/explicit-module-boundary-types":
- error
- allowArgumentsExplicitlyTypedAsAny: true
"@typescript-eslint/object-curly-spacing":
- error
- always
# custom rules to fix code style
"@typescript-eslint/require-await": "off"
"@typescript-eslint/no-unsafe-assignment": "off"
"@typescript-eslint/no-unsafe-call": "off"
"@typescript-eslint/no-unsafe-member-access": "off"
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-unsafe-return": "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"