Skip to content

Commit

Permalink
Map SuppressedMessages to messages with severity = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
akhushnood committed Mar 18, 2024
1 parent 7ed5db7 commit 205bdd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Parser/ESLintParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export class ESLintParser extends Parser {
logs
.filter((log) => log.suppressedMessages.length !== 0)
.map((log) => {
const messages = log.messages.map((msg) => ({ ...msg, severity: 0 }));
const messages = log.suppressedMessages.map((msg) => ({
...msg,
severity: 0,
}));
return { ...log, messages: messages };
}),
)
Expand Down

0 comments on commit 205bdd2

Please sign in to comment.