-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.yaml
87 lines (82 loc) · 2.04 KB
/
.eslintrc.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
root: true
parser: "@typescript-eslint/parser"
parserOptions:
projectService: true
plugins:
- eslint-plugin-tsdoc
- import
extends:
- eslint:recommended
- plugin:@typescript-eslint/strict-type-checked
- plugin:@typescript-eslint/stylistic-type-checked
- plugin:import/typescript
settings:
import/internal-regex: ^@cerbos/
rules:
"@typescript-eslint/consistent-type-imports": warn
"@typescript-eslint/explicit-function-return-type": warn
"@typescript-eslint/explicit-member-accessibility": warn
"@typescript-eslint/no-confusing-void-expression": warn
"@typescript-eslint/no-require-imports":
- warn
- allow:
- /package\.json$
"@typescript-eslint/no-unnecessary-condition":
- warn
- allowConstantLoopConditions: true
"@typescript-eslint/no-unused-vars":
- warn
- argsIgnorePattern: ^_
ignoreRestSiblings: true
"@typescript-eslint/prefer-enum-initializers": warn
"@typescript-eslint/prefer-nullish-coalescing": warn
"@typescript-eslint/promise-function-async": warn
"@typescript-eslint/restrict-template-expressions":
- warn
- allowNumber: true
"@typescript-eslint/return-await":
- warn
- always
curly: warn
func-style:
- warn
- declaration
import/consistent-type-specifier-style:
- warn
- prefer-top-level
import/export: warn
import/newline-after-import: warn
import/no-duplicates: warn
import/no-extraneous-dependencies:
- warn
- devDependencies:
- private/**
optionalDependencies: false
includeTypes: true
import/no-named-as-default: warn
import/order:
- warn
- alphabetize:
order: asc
orderImportKind: asc
caseInsensitive: true
groups:
- builtin
- external
- internal
- parent
- sibling
- index
newlines-between: always
no-console: warn
no-constant-condition:
- warn
- checkLoops: false
quotes:
- warn
- double
- avoidEscape: true
sort-imports:
- warn
- ignoreDeclarationSort: true
tsdoc/syntax: warn