diff --git a/linter.py b/linter.py index 5f05acf..55a58cd 100644 --- a/linter.py +++ b/linter.py @@ -72,7 +72,7 @@ def cmd(self): cmd = ['eslint', '--format=json', '--stdin'] stdin_filename = self.get_stdin_filename() if stdin_filename: - cmd.append('--stdin-filename=' + stdin_filename) + cmd.append('--stdin-filename=' + stdin_filename.replace('$', '\\$')) return cmd def run(self, cmd, code):