Chore: Sort eslint betterer results by name (#98208)

This commit is contained in:
Tom Ratcliffe 2025-01-07 14:56:12 +00:00 committed by GitHub
parent 9ed4bf3cd2
commit df80bdeb14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 923 additions and 922 deletions

File diff suppressed because it is too large Load Diff

View File

@ -87,9 +87,11 @@ function countEslintErrors() {
lintResults.forEach(({ messages, filePath }) => {
const file = fileTestResult.addFile(filePath, '');
messages.forEach((message, index) => {
file.addIssue(0, 0, message.message, `${index}`);
});
messages
.sort((a, b) => (a.message > b.message ? 1 : -1))
.forEach((message, index) => {
file.addIssue(0, 0, message.message, `${index}`);
});
});
});
}