This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.eslintrc.yaml
188 lines (188 loc) · 4.55 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
root: true
parser: "@typescript-eslint/parser"
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:prettier/recommended
plugins:
- "@typescript-eslint"
- prettier
env:
es6: true
node: true
ignorePatterns:
- node_modules
- "**/lib"
- "**/*.generated.ts"
- "**/generated/index.ts"
- "**/*.d.ts"
rules:
array-callback-return: error
arrow-body-style:
- error
- as-needed
arrow-parens:
- error
- as-needed
block-scoped-var: error
comma-dangle:
- error
- never
complexity: error
consistent-return: error
curly: error
default-case-last: error
default-param-last: error
dot-location:
- error
- property
eol-last:
- error
- always
eqeqeq: error
guard-for-in: error
linebreak-style:
- error
- unix
lines-between-class-members:
- error
- always
- exceptAfterSingleLine: true
no-alert: error
no-caller: error
no-console: "off"
no-constructor-return: error
no-else-return: error
no-empty-function: error
no-eq-null: error
no-eval: error
no-extend-native: error
no-extra-bind: error
no-extra-label: error
no-floating-decimal: error
no-implicit-coercion: error
no-implied-eval: error
no-invalid-this: error
no-iterator: error
no-label-var: error
no-labels: error
no-lone-blocks: error
no-lonely-if: error
no-loop-func: error
no-multi-spaces: error
no-multi-str: error
no-new: error
no-new-func: error
no-new-wrappers: error
no-octal-escape: error
no-param-reassign: error
no-promise-executor-return: error
no-proto: error
no-redeclare: "off"
no-return-assign: error
no-script-url: error
no-self-assign: error
no-self-compare: error
no-sequences: error
no-template-curly-in-string: error
no-throw-literal: error
no-unmodified-loop-condition: error
no-unreachable-loop: error
no-unused-expressions: "off"
no-unused-vars: "off"
no-use-before-define: "off"
no-useless-backreference: error
no-useless-call: error
no-useless-concat: error
no-useless-return: error
no-void: error
prefer-arrow-callback: error
prefer-named-capture-group: error
prefer-promise-reject-errors: error
prefer-regex-literals: error
prettier/prettier:
- error
- arrowParens: avoid
trailingComma: none
quotes: "off"
require-unicode-regexp: error
semi-style:
- error
- last
sort-imports:
- error
- ignoreCase: true
ignoreDeclarationSort: true
vars-on-top: error
wrap-iife: error
yoda: error
overrides:
- files:
- "**/*.js"
- "**/*.cjs"
- "**/*.mjs"
- "**/*.jsx"
rules:
"@typescript-eslint/no-var-requires": "off"
- files:
- "**/*.ts"
- "**/*.cts"
- "**/*.mts"
- "**/*.tsx"
rules:
no-dupe-class-members: "off"
"@typescript-eslint/explicit-member-accessibility": error
"@typescript-eslint/array-type": error
"@typescript-eslint/explicit-function-return-type":
- error
- allowExpressions: true
allowHigherOrderFunctions: true
allowTypedFunctionExpressions: true
allowDirectConstAssertionInArrowFunctions: true
"@typescript-eslint/naming-convention":
- error
- selector: default
format:
- camelCase
leadingUnderscore: allowSingleOrDouble
- selector: variable
format:
- camelCase
- UPPER_CASE
- PascalCase
leadingUnderscore: allowSingleOrDouble
- selector: typeLike
format:
- PascalCase
- selector: variable
modifiers:
- destructured
format:
- selector: objectLiteralProperty
format:
"@typescript-eslint/no-empty-interface": "off"
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-unused-expressions":
- error
"@typescript-eslint/no-unused-vars":
- error
- args: after-used
argsIgnorePattern: "^_"
ignoreRestSiblings: true
"@typescript-eslint/no-use-before-define":
- error
- typedefs: false
"@typescript-eslint/quotes":
- error
- double
- avoidEscape: true
"@typescript-eslint/no-redeclare":
- error
- ignoreDeclarationMerge: true
"@typescript-eslint/consistent-type-imports": error
"@typescript-eslint/method-signature-style": error
"@typescript-eslint/no-useless-empty-export": error
- files:
- packages/api/src/*.ts
rules:
"@typescript-eslint/naming-convention": "off"