Chromium Code Reviews| Index: catapult_build/js_checks.py |
| diff --git a/catapult_build/js_checks.py b/catapult_build/js_checks.py |
| index 61a5eeaa56fc72444a8b114fb5d0926fdc59d7a4..d96ce0cfc861fe568541f64246549cd18ed54e39 100644 |
| --- a/catapult_build/js_checks.py |
| +++ b/catapult_build/js_checks.py |
| @@ -4,7 +4,7 @@ |
|
nednguyen
2016/09/23 10:17:49
Hmhh, shouldn't file be moved to eslint module?
charliea (OOO until 10-5)
2016/09/23 13:06:34
IDTS: there are still non-eslint-based javascript
|
| import re |
| -from node_runner import node_util |
| +from eslint import eslint |
| from py_vulcanize import strip_js_comments |
| from catapult_build import parse_html |
| @@ -84,7 +84,7 @@ class JSChecker(object): |
| error_lines += filter(None, [self.ConstCheck(i, line)]) |
| if affected_js_files: |
| - eslint_output = node_util.RunEslint( |
| + eslint_output = eslint.RunEslint( |
| [f.AbsoluteLocalPath() for f in affected_js_files]).rstrip() |
| if eslint_output: |