metamigo-common: build, fmt, lint

This commit is contained in:
Abel Luck 2023-03-13 11:46:12 +00:00
parent 2a1ced5383
commit 75fb3f84c4
21 changed files with 95 additions and 156 deletions

View file

@ -1,5 +1,5 @@
import * as Hapi from "@hapi/hapi";
import * as http from "http";
import * as http from "node:http";
import type { HttpTerminator } from "http-terminator";
import * as Glue from "@hapi/glue";
import * as Promster from "@promster/hapi";
@ -102,7 +102,6 @@ export const defaultPlugins = <T extends IMetamigoConfig>(
{ plugin: StatusPlugin },
{ plugin: Promster.createPlugin() },
];
// @ts-ignore
return plugins;
};
@ -110,7 +109,7 @@ export const announce = async <T extends IMetamigoConfig>(
config: T
): Promise<void> =>
new Promise((resolve, reject) => {
// @ts-expect-error
// @ts-expect-error figlet doesn't have types
figlet.text(
config.meta.name,
{ font: config.meta.figletFont },