From fe75d07fdb84c7ad9ff784bd5b63745d172c6ec6 Mon Sep 17 00:00:00 2001 From: David Anson Date: Tue, 28 Jul 2026 05:26:27 +0000 Subject: [PATCH] Address new lint error from previous commit, freshen generated index.js file. --- dist/index.mjs | 4 ++-- eslint.config.mjs | 1 + markdownlint-cli2-action.mjs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dist/index.mjs b/dist/index.mjs index 9b38dd8..1532f46 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -81340,9 +81340,9 @@ const parameters = { ] } }; -// eslint-disable-next-line unicorn/prefer-await markdownlint_cli2_main(parameters).then( - (code) => code && setFailed(`Failed with exit code: ${code}`), + (code) => code && setFailed(`Failed with exit code: ${code}`) +).catch( (error) => setFailed(`Failed due to error: ${error}`) ); diff --git a/eslint.config.mjs b/eslint.config.mjs index 04d15ee..940fd8a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -35,6 +35,7 @@ export default [ "@stylistic/operator-linebreak": [ "error", "after" ], "unicorn/no-array-callback-reference": "off", + "unicorn/prefer-await": "off", "unicorn/prefer-module": "off", "unicorn/prefer-top-level-await": "off" } diff --git a/markdownlint-cli2-action.mjs b/markdownlint-cli2-action.mjs index e994593..4471613 100644 --- a/markdownlint-cli2-action.mjs +++ b/markdownlint-cli2-action.mjs @@ -75,8 +75,8 @@ const parameters = { ] } }; -// eslint-disable-next-line unicorn/prefer-await markdownlintCli2(parameters).then( - (code) => code && core.setFailed(`Failed with exit code: ${code}`), + (code) => code && core.setFailed(`Failed with exit code: ${code}`) +).catch( (error) => core.setFailed(`Failed due to error: ${error}`) );