We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca96d7f + 98f7695 commit c8a4391Copy full SHA for c8a4391
linter.py
@@ -12,7 +12,6 @@
12
13
import json
14
import logging
15
-import os
16
import re
17
from SublimeLinter.lint import NodeLinter
18
@@ -57,7 +56,7 @@ def find_errors(self, output):
57
56
# only parse the last line, which is hopefully the actual eslint
58
# output.
59
# https://github.com/SublimeLinter/SublimeLinter-eslint/issues/251
60
- last_line = output.rstrip().split(os.linesep)[-1]
+ last_line = output.rstrip().split('\n')[-1]
61
content = json.loads(last_line)
62
except ValueError:
63
logger.error(
0 commit comments