Skip to content

Commit

Permalink
Maybe it's line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Feb 21, 2024
1 parent be9d181 commit 0f385ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/eslint-plugin/test/eslint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ function formatResultsWithInlineErrors(results: ESLint.LintResult[]): string {
output.push("");
}

return output.join("\n").trim() + "\n";
return (
output
.map((o) => o.replace(/\r?\n/g, "\n"))
.join("\n")
.trim() + "\n"
);
}

// Similar to https://github.com/storybookjs/storybook/blob/df357020e010f49e7c325942f0c891e6702527d6/code/addons/storyshots-core/src/api/integrityTestTemplate.ts
Expand Down

0 comments on commit 0f385ce

Please sign in to comment.