-
Notifications
You must be signed in to change notification settings - Fork 203
Expand file tree
/
Copy pathbiome.jsonc
More file actions
196 lines (196 loc) · 6.39 KB
/
Copy pathbiome.jsonc
File metadata and controls
196 lines (196 loc) · 6.39 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
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
189
190
191
192
193
194
195
196
{
"$schema": "https://biomejs.dev/schemas/2.5.5/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": ["**/*.{json,ts,cts,mts,js,cjs,mjs}"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "lf"
},
"linter": {
"enabled": true,
"domains": {
"types": "none",
"project": "recommended"
},
"rules": {
"preset": "none",
"style": {
"useImportType": "error",
"noNonNullAssertion": "off",
"useBlockStatements": "off",
"noCommonJs": "error",
"useNodejsImportProtocol": "error"
},
"correctness": {
"noUnusedImports": "error",
"useJsonImportAttributes": "error",
"useImportExtensions": "error",
"noUnusedVariables": "off",
"noUnreachable": "off",
"noPrecisionLoss": "off",
"noInnerDeclarations": "off"
},
"suspicious": {
"noConsole": "error",
"useIterableCallbackReturn": "off",
"noDoubleEquals": "off",
"noAssignInExpressions": "off",
"noImplicitAnyLet": "off",
"noSparseArray": "off",
"noRedeclare": "off"
},
"nursery": {
"noFloatingPromises": "off"
}
}
},
"assist": {
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
[":URL:"],
[":NODE:"],
[":BUN:"],
[":PACKAGE_WITH_PROTOCOL:"],
[":PACKAGE:"],
[":ALIAS:"],
[":PATH:", "!**/*.json"],
["**/*.json"]
]
}
}
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always",
"trailingCommas": "es5",
"arrowParentheses": "asNeeded",
"bracketSameLine": false,
"bracketSpacing": true,
"delimiterSpacing": false,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"expand": "auto",
"operatorLinebreak": "before",
"trailingNewline": true
}
},
"plugins": [
{
"path": "./tooling/biome/noAsUnknownAs.grit",
"includes": ["**/src/**/*.ts", "!**/src/**/*.test.ts"]
},
{
// The price/fee/TVL pipeline. The `!` entries are files that already contain `?? <num>`
// and are exempt until the stage that touches them cleans them up -- delete an entry as
// each file is done, so this list shrinking is the progress signal.
"path": "./tooling/biome/noSilentCoerce.grit",
"includes": [
"**/src/api/stats/**/*.ts",
"**/src/api/vaults/**/*.ts",
"**/src/api/treasury/**/*.ts",
"**/src/api/tokens/**/*.ts",
"**/src/api/boosts/**/*.ts",
"**/src/api/cowcentrated/**/*.ts",
"**/src/utils/fetchPrice.ts",
"**/src/utils/fetchAmmPrices.ts",
"**/src/utils/fetchChainLinkPrices.ts",
"**/src/utils/fetchCurveTokenPrices.ts",
"!**/src/api/boosts/fetchBoostData.ts",
"!**/src/api/boosts/getBoosts.ts",
"!**/src/api/cowcentrated/getCowVaultsMeta.ts",
"!**/src/api/stats/arbitrum/getMimSwapPrices.ts",
"!**/src/api/stats/berachain/getKodiakApys.ts",
"!**/src/api/stats/common/aave/getAaveV3Apys.ts",
"!**/src/api/stats/common/aave/getAaveV4Apys.ts",
"!**/src/api/stats/common/aave/getAaveV4Prices.ts",
"!**/src/api/stats/common/balancer/getBalancerApys.ts",
"!**/src/api/stats/common/curve/getCurveApysCommon.ts",
"!**/src/api/stats/common/euler/getEulerPrices.ts",
"!**/src/api/stats/common/gearbox/getGearboxPrices.ts",
"!**/src/api/stats/common/getCompoundV3Apys.ts",
"!**/src/api/stats/common/getCowVaultApys.ts",
"!**/src/api/stats/common/getMerklApys.ts",
"!**/src/api/stats/common/getMultiRewardMasterChefApys.ts",
"!**/src/api/stats/common/getPendleCommonPrices.ts",
"!**/src/api/stats/common/getSolidlyStablePrices.ts",
"!**/src/api/stats/common/morpho/getMorphoApys.ts",
"!**/src/api/stats/common/morpho/getMorphoPrices.ts",
"!**/src/api/stats/common/pendle/getPendleApys.ts",
"!**/src/api/stats/common/pendle/getPendleBaseApys.ts",
"!**/src/api/stats/common/pendle/getPendleUnboostedApys.ts",
"!**/src/api/stats/common/silo/getSiloApys.ts",
"!**/src/api/stats/ethereum/getAuraApys.ts",
"!**/src/api/stats/ethereum/getStakeDaoApys.ts",
"!**/src/api/stats/fraxtal/getConvexCvxFxsApys.ts",
"!**/src/api/stats/getBeTokenPrices.ts",
"!**/src/api/stats/getBoostAprs.ts",
"!**/src/api/stats/getChainTvl.ts",
"!**/src/api/stats/getMooTokenPrices.ts",
"!**/src/api/stats/mantle/getMoeApys.ts",
"!**/src/api/stats/monad/getNeverlandApys.ts",
"!**/src/api/tokens/tokens.ts",
"!**/src/api/treasury/getTreasury.ts",
"!**/src/api/treasury/validatorHelpers.ts",
"!**/src/api/vaults/getVaultFees.ts",
"!**/src/utils/fetchAmmPrices.ts",
"!**/src/utils/fetchCurveTokenPrices.ts",
"!**/src/utils/fetchPrice.ts"
]
}
],
"overrides": [
{
"includes": ["scripts/**"],
"linter": {
"rules": {
"suspicious": {
"noConsole": "off"
}
}
}
},
{
// `!` is a silent lie about a value the compiler believes may be absent; in this pipeline
// that lie becomes a wrong number rather than a crash. The 4 `!` entries are pre-existing
// and all of the benign `arr[i]!` / post-`.filter()` kind that TypeScript cannot narrow --
// not the dangerous "assert a price exists" kind. Exempt until their stage rewrites them.
"includes": [
"src/api/stats/**/*.ts",
"src/api/vaults/**/*.ts",
"src/api/treasury/**/*.ts",
"src/api/tokens/**/*.ts",
"src/api/boosts/**/*.ts",
"src/api/cowcentrated/**/*.ts",
"src/utils/fetch*.ts",
"!src/api/stats/monad/getNeverlandApys.ts",
"!src/api/vaults/getVaultFees.ts",
"!src/utils/fetchDexScreenerPrices.ts"
],
"linter": {
"rules": {
"style": {
"noNonNullAssertion": "error"
}
}
}
}
]
}