-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yaml
154 lines (133 loc) · 4.27 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
root: true
parser: "@typescript-eslint/parser"
extends:
- plugin:@typescript-eslint/recommended
- plugin:sonarjs/recommended
- plugin:unicorn/recommended
- plugin:prettier/recommended
plugins:
- simple-import-sort
- import
- only-error
- unused-imports
rules:
default-case: error
lines-between-class-members: "off"
no-async-promise-executor: error
no-await-in-loop: error
no-console: error
no-misleading-character-class: error
no-multi-assign: error
no-multi-str: error
no-nested-ternary: error
no-new: error
no-new-object: error
no-new-symbol: error
no-new-wrappers: error
no-obj-calls: error
no-path-concat: error
no-return-await: error
no-script-url: error
no-self-compare: error
no-sequences: error
no-shadow-restricted-names: error
no-sparse-arrays: error
no-tabs: error
no-template-curly-in-string: error
no-this-before-super: error
prefer-numeric-literals: error
prefer-object-spread: error
prefer-rest-params: error
prefer-spread: error
prefer-template: error
sort-imports: "off"
symbol-description: error
import/exports-last: error
import/first: error
import/no-default-export: error
import/no-duplicates: error
import/order: "off"
import/prefer-default-export: "off"
simple-import-sort/exports: error
simple-import-sort/imports: error
unused-imports/no-unused-imports: error
unicorn/no-array-callback-reference: "off"
unicorn/no-array-for-each: "off"
unicorn/no-array-reduce: "off"
unicorn/no-null: "off"
"@typescript-eslint/member-ordering": error
"@typescript-eslint/method-signature-style": error
# "@typescript-eslint/naming-convention": error
"@typescript-eslint/no-base-to-string": error
"@typescript-eslint/no-confusing-non-null-assertion": error
"@typescript-eslint/no-confusing-void-expression": error
"@typescript-eslint/no-dynamic-delete": error
"@typescript-eslint/no-floating-promises": error
"@typescript-eslint/no-require-imports": error
"@typescript-eslint/no-unnecessary-boolean-literal-compare": error
"@typescript-eslint/no-unnecessary-condition": error
"@typescript-eslint/no-unnecessary-qualifier": error
"@typescript-eslint/no-unnecessary-type-arguments": error
"@typescript-eslint/no-unnecessary-type-constraint": error
"@typescript-eslint/no-unused-vars": "off"
"@typescript-eslint/prefer-includes": error
"@typescript-eslint/prefer-nullish-coalescing": error
"@typescript-eslint/prefer-optional-chain": error
"@typescript-eslint/prefer-readonly": error
"@typescript-eslint/prefer-string-starts-ends-with": error
"@typescript-eslint/prefer-ts-expect-error": error
"@typescript-eslint/promise-function-async": error
"@typescript-eslint/require-array-sort-compare": error
"@typescript-eslint/strict-boolean-expressions": error
"@typescript-eslint/switch-exhaustiveness-check": error
"@typescript-eslint/type-annotation-spacing": error
"@typescript-eslint/unified-signatures": error
arrow-body-style:
- error
- as-needed
func-style:
- error
- expression
- allowArrowFunctions: true
unused-imports/no-unused-vars:
- error
- vars: all
args: after-used
ignoreRestSiblings: true
argsIgnorePattern: ^_
varsIgnorePattern: ^_
"@typescript-eslint/array-type":
- error
- default: array
readonly: array
"@typescript-eslint/consistent-indexed-object-style":
- error
- record
"@typescript-eslint/consistent-type-assertions":
- error
- assertionStyle: as
objectLiteralTypeAssertions: allow
"@typescript-eslint/consistent-type-definitions":
- error
- interface
"@typescript-eslint/consistent-type-imports":
- error
- prefer: type-imports
disallowTypeAnnotations: true
"@typescript-eslint/explicit-function-return-type":
- error
- allowExpressions: true
allowTypedFunctionExpressions: true
allowHigherOrderFunctions: true
allowDirectConstAssertionInArrowFunctions: true
allowConciseArrowFunctionExpressionsStartingWithVoid: false
"@typescript-eslint/explicit-member-accessibility":
- error
- accessibility: explicit
"@typescript-eslint/no-extraneous-class":
- error
- allowWithDecorator: true
"@typescript-eslint/lines-between-class-members":
- error
- always
- exceptAfterOverload: true