Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Fix styling of syntax errors
Browse files Browse the repository at this point in the history
Since we were previously specifying the message type to be `syntax error`, Linter didn't have a pre-defined style for the messages. Move to just using `Error`, which Linter will style for us.
  • Loading branch information
Arcanemagus committed Dec 1, 2016
1 parent 55392a4 commit 85b7e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ export default {
let match = regex.exec(output);
while (match !== null) {
const msgLine = Number.parseInt(match[1] - 1, 10);
const type = match[2] === 'warning' ? 'Warning' : 'Error';
toReturn.push({
range: helpers.rangeFromLineNumber(textEditor, msgLine),
type: match[2],
type,
text: match[3],
filePath,
});
Expand Down

0 comments on commit 85b7e7e

Please sign in to comment.