Skip to content

Commit 3aed77f

Browse files
authored
chore(lint): use console[xyz] over process
1 parent 3887232 commit 3aed77f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/linter/reporters/console.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export default issue => {
2121
? ` (${issue.location.position.start.line}:${issue.location.position.end.line})`
2222
: '';
2323

24-
process.stdout.write(
24+
console[issue.level](
2525
styleText(
2626
levelToColorMap[issue.level],
2727
`${issue.message} at ${issue.location.path}${position}`
28-
) + '\n'
28+
)
2929
);
3030
};

0 commit comments

Comments
 (0)