From 3ed3c01b572a46b80d3338ab029ec3ec936ec6e3 Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:13:10 -0600 Subject: [PATCH] fix: lint/type --- lib/main.js | 4 +--- lib/spinner.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/main.js b/lib/main.js index 7e2cb3fc0..15ae4bf49 100644 --- a/lib/main.js +++ b/lib/main.js @@ -46,9 +46,7 @@ process.on('unhandledRejection', errorHandler); * @returns {never} */ function errorHandler(err) { - // eslint unicorn/no-useless-undefined: ["warn", {"checkArguments": false}] -- Bad TS type. - // eslint-disable-next-line unicorn/no-useless-undefined -- Above doesn't work? - Spinner.fail(undefined); + Spinner.fail(); let userSrc = null; try { userSrc = options.userSrc(); diff --git a/lib/spinner.js b/lib/spinner.js index bcef9dba8..ff5afa65c 100644 --- a/lib/spinner.js +++ b/lib/spinner.js @@ -59,7 +59,7 @@ function succeedAndNowDo(text) { /** * Fails the current task and replaces its text with the given text. * - * @param {string | undefined} text + * @param {string | undefined} [text] * @returns {void} */ function fail(text) {