diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 5a336f1..f55778c 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -66581,12 +66581,12 @@ function runLint(lintPath, patchPath) { .filter((arg) => arg.startsWith(`-`)) .map((arg) => arg.replace(/^-+/, ``)) .map((arg) => arg.split(/=(.*)/, 2)) - .map(([key, value]) => [key, value !== null && value !== void 0 ? value : '']); + .map(([key, value]) => [key, value !== null && value !== void 0 ? value : ""]); const userArgsMap = new Map(userArgsList); const userArgNames = new Set(userArgsList.map(([key, value]) => key)); - const formats = userArgsMap.get('out-format'); + const formats = userArgsMap.get("out-format"); if (formats) { - if (formats.includes('github-actions')) { + if (formats.includes("github-actions")) { addedArgs.push(`--out-format=${formats}`); } else { diff --git a/dist/run/index.js b/dist/run/index.js index 518cb5f..1a60770 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -66581,12 +66581,12 @@ function runLint(lintPath, patchPath) { .filter((arg) => arg.startsWith(`-`)) .map((arg) => arg.replace(/^-+/, ``)) .map((arg) => arg.split(/=(.*)/, 2)) - .map(([key, value]) => [key, value !== null && value !== void 0 ? value : '']); + .map(([key, value]) => [key, value !== null && value !== void 0 ? value : ""]); const userArgsMap = new Map(userArgsList); const userArgNames = new Set(userArgsList.map(([key, value]) => key)); - const formats = userArgsMap.get('out-format'); + const formats = userArgsMap.get("out-format"); if (formats) { - if (formats.includes('github-actions')) { + if (formats.includes("github-actions")) { addedArgs.push(`--out-format=${formats}`); } else { diff --git a/src/run.ts b/src/run.ts index 0c7e9a3..a225665 100644 --- a/src/run.ts +++ b/src/run.ts @@ -125,15 +125,15 @@ async function runLint(lintPath: string, patchPath: string): Promise { .filter((arg) => arg.startsWith(`-`)) .map((arg) => arg.replace(/^-+/, ``)) .map((arg) => arg.split(/=(.*)/, 2)) - .map<[string, string]>(([key, value]) => [key, value ?? '']) - - const userArgsMap = new Map(userArgsList) - const userArgNames = new Set(userArgsList.map(([key, value]) => key)); + .map<[string, string]>(([key, value]) => [key, value ?? ""]) - const formats = userArgsMap.get('out-format') + const userArgsMap = new Map(userArgsList) + const userArgNames = new Set(userArgsList.map(([key, value]) => key)) + + const formats = userArgsMap.get("out-format") if (formats) { - if (formats.includes('github-actions')) { - addedArgs.push(`--out-format=${formats}`); + if (formats.includes("github-actions")) { + addedArgs.push(`--out-format=${formats}`) } else { addedArgs.push(`--out-format=github-actions,${formats}`) }