mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
refactor(server): keep three suppressed lines whole so Prettier cannot move them past their directive
Prettier wraps the emoji regex onto the line after its declaration and spreads two any-cast lines in the plugin tests over several lines, which would leave the casts outside the eslint-disable-next-line above them. The regex directive now sits on the line right before the literal, the dev-link controller takes never instead of any for the collaborators it ignores, and the supervisor test reaches the private kill/onExit through one cast.
This commit is contained in:
@@ -11,7 +11,7 @@ import { PluginConsentRequired } from '../../../src/nest/plugins/plugin-runtime.
|
||||
import type { RuntimeEnvService } from '../../../src/nest/app-config/runtime-env.service';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const ctrl = (runtime: any) => new PluginsController({} as any, runtime, {} as any, { isManaged: () => false } as unknown as RuntimeEnvService);
|
||||
const ctrl = (runtime: any) => new PluginsController({} as never, runtime, {} as never, { isManaged: () => false } as unknown as RuntimeEnvService);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const status = async (p: Promise<any>): Promise<number> =>
|
||||
p.then(() => -1, (e) => (e instanceof HttpException ? e.getStatus() : 0));
|
||||
|
||||
Reference in New Issue
Block a user