Skip to content

Commit

Permalink
Lint fixes for latest rules
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored and abetomo committed Jun 16, 2023
1 parent 76d3d11 commit 752900d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions typings/index.test-d.ts
Expand Up @@ -278,11 +278,11 @@ expectType<commander.Command>(program.executableDir(__dirname));
expectType<string>(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<void>(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<void>(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<void>(program.outputHelp({ error: true }));

// help
Expand Down Expand Up @@ -354,8 +354,8 @@ expectType<commander.Command>(program.configureOutput({ }));
expectType<commander.OutputConfiguration>(program.configureOutput());

expectType<commander.Command>(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); }
Expand Down

0 comments on commit 752900d

Please sign in to comment.