diff --git a/src/commands/default.ts b/src/commands/default.ts index 98a6f988..7e983edb 100644 --- a/src/commands/default.ts +++ b/src/commands/default.ts @@ -26,7 +26,11 @@ export default async function defaultMain(args: Argv) { to: args.to, output: args.output, exclude: - typeof args.exclude === "string" ? args.exclude.split(",") : (args.exclude === 0 ? [""] : undefined), + typeof args.exclude === "string" + ? args.exclude.split(",") + : args.exclude === 0 // eslint-disable-line unicorn/no-nested-ternary + ? [""] + : undefined, newVersion: typeof args.r === "string" ? args.r : undefined, }); diff --git a/test/git.test.ts b/test/git.test.ts index 3bed5c0d..f9a447b7 100644 --- a/test/git.test.ts +++ b/test/git.test.ts @@ -331,7 +331,7 @@ describe("git", () => { const config = await loadChangelogConfig(process.cwd(), { from: COMMIT_FROM, to: COMMIT_TO, - exclude: ["fix","chore(deps)"], + exclude: ["fix", "chore(deps)"], }); const parsed = filterParsedCommits(parseCommits(commits, config), config);