[eslint] Add rules matching codebase style

This commit is contained in:
Alexis Sellier
2021-06-14 10:52:00 +02:00
parent 618d49e201
commit 50d2bc944f
3 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -5,8 +5,9 @@ export async function get(
params: Record<string, any>,
config: Config
): Promise<any> {
if (! config.seed.api)
if (! config.seed.api) {
throw new Error("Seed HTTP API unavailable");
}
const query: Record<string, string> = {};
for (const [key, val] of Object.entries(params)) {