Skip to content

Commit

Permalink
Merge pull request #242 from SublimeLinter/handle-empty-views
Browse files Browse the repository at this point in the history
Pretend ' ' for empty views
  • Loading branch information
kaste authored Apr 25, 2018
2 parents 84d3635 + 72d111f commit 7e1bab7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,11 @@ def reposition_match(self, line, col, m, vv):
end_column += len(text)

return line, col, end_column

def run(self, cmd, code):
# Workaround eslint bug https://github.com/eslint/eslint/issues/9515
# Fixed in eslint 4.10.0
if code == '':
code = ' '

return super().run(cmd, code)

0 comments on commit 7e1bab7

Please sign in to comment.