Skip to content

Commit 7e1bab7

Browse files
authored
Merge pull request #242 from SublimeLinter/handle-empty-views
Pretend ' ' for empty views
2 parents 84d3635 + 72d111f commit 7e1bab7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

linter.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,11 @@ def reposition_match(self, line, col, m, vv):
102102
end_column += len(text)
103103

104104
return line, col, end_column
105+
106+
def run(self, cmd, code):
107+
# Workaround eslint bug https://github.com/eslint/eslint/issues/9515
108+
# Fixed in eslint 4.10.0
109+
if code == '':
110+
code = ' '
111+
112+
return super().run(cmd, code)

0 commit comments

Comments
 (0)