diff --git a/linter.py b/linter.py index ecc8b19..bdb5c1e 100644 --- a/linter.py +++ b/linter.py @@ -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)