Skip to content
Myr

Fix lint issues

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parent d90ef12 · Browse files · 3 files+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−4 removed

  • tests:+1 added−1 removed
  • other:+4 added−3 removed

3 files+5 added−4 removed

modified:tests/command.addHelp.test.js+1 added-1 removed
31 unmodified lines
32 expect(writeSpy).toHaveBeenNthCalledWith(1, 'text\n');33 expect(writeSpy).toHaveBeenNthCalledWith(2, program.helpInformation());34 });3536 test('when "before" function returns void then no effect', () => {36 test('when "before" function returns nothing then no effect', () => {37 const program = new commander.Command();38 program.addHelpText('before', () => { });39 program.outputHelp();40 expect(writeSpy).toHaveBeenNthCalledWith(1, program.helpInformation());
198 unmodified lines
modified:typings/index.d.ts+4 added-1 removed
1// Type definitions for commander2// Original definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>, Jules Randolph <https://github.com/sveinburne>34// Using method rather than property for method-signature-style, to document method overloads separately. Allow either.5/* eslint-disable @typescript-eslint/method-signature-style */67declare namespace commander {89 interface CommanderError extends Error {10 code: string;
502 unmodified lines
513 * Position is 'before' or 'after' to affect just this command,514 * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.515 */516 addHelpText(position: AddHelpTextPosition, text: string): this;514 addHelpText(position: AddHelpTextPosition, text: (context: AddHelpTextContext) => string | void): this;517 addHelpText(position: AddHelpTextPosition, text: (context: AddHelpTextContext) => string | undefined): this;518519 /**520 * Add a listener (callback) for when events occur. (Implemented using EventEmitter.)521 */
33 unmodified lines
modified:.eslintrc.js-2 removed