From 752900d84931eeaabcc3cbb00d89b5c0f502bb4f Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 27 May 2023 17:40:55 +1200 Subject: [PATCH] Lint fixes for latest rules --- typings/index.test-d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/typings/index.test-d.ts b/typings/index.test-d.ts index 1d6690da7..734036fad 100644 --- a/typings/index.test-d.ts +++ b/typings/index.test-d.ts @@ -278,11 +278,11 @@ expectType(program.executableDir(__dirname)); expectType(program.executableDir()); // outputHelp -// eslint-disable-next-line @typescript-eslint/no-invalid-void-type +// eslint-disable-next-line @typescript-eslint/no-invalid-void-type, @typescript-eslint/no-confusing-void-expression expectType(program.outputHelp()); -// eslint-disable-next-line @typescript-eslint/no-invalid-void-type +// eslint-disable-next-line @typescript-eslint/no-invalid-void-type, @typescript-eslint/no-confusing-void-expression expectType(program.outputHelp((str: string) => { return str; })); -// eslint-disable-next-line @typescript-eslint/no-invalid-void-type +// eslint-disable-next-line @typescript-eslint/no-invalid-void-type, @typescript-eslint/no-confusing-void-expression expectType(program.outputHelp({ error: true })); // help @@ -354,8 +354,8 @@ expectType(program.configureOutput({ })); expectType(program.configureOutput()); expectType(program.configureOutput({ - writeOut: (str: string) => console.log(str), - writeErr: (str: string) => console.error(str), + writeOut: (str: string) => { console.log(str); }, + writeErr: (str: string) => { console.error(str); }, getOutHelpWidth: () => 80, getErrHelpWidth: () => 80, outputError: (str: string, write: (str: string) => void) => { write(str); }