| Index: common/node_runner/node_runner/node_util.py
|
| diff --git a/common/node_runner/node_runner/node_util.py b/common/node_runner/node_runner/node_util.py
|
| index a51daa569035a8271cb1676669e7986d3041bc67..841c3d0a6084eed4664a3206deba634c35008f26 100644
|
| --- a/common/node_runner/node_runner/node_util.py
|
| +++ b/common/node_runner/node_runner/node_util.py
|
| @@ -60,21 +60,3 @@ def GetNodeModulesPath():
|
| # Escape path on Windows because it's very long and must be passed to NTFS.
|
| path = u'\\\\?\\' + path
|
| return path
|
| -
|
| -
|
| -def RunEslint(filenames=None):
|
| - cmd = [
|
| - GetNodePath(),
|
| - os.path.join(GetNodeModulesPath(), 'eslint', 'bin', 'eslint.js'),
|
| - '--color',
|
| - '--config',
|
| - os.path.join(py_utils.GetCatapultDir(), 'common', 'eslint', '.eslintrc'),
|
| - '--rulesdir',
|
| - os.path.join(py_utils.GetCatapultDir(), 'common', 'eslint', 'rules')
|
| - ]
|
| - if filenames:
|
| - cmd += filenames
|
| - try:
|
| - return subprocess.check_output(cmd, stderr=subprocess.STDOUT)
|
| - except subprocess.CalledProcessError as e:
|
| - return e.output
|
|
|