summaryrefslogtreecommitdiff
path: root/buildscripts/eslint.py
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-03-29 16:31:03 -0400
committerMathias Stearn <mathias@10gen.com>2017-04-12 08:57:12 -0400
commit80d05e9359bc527da0bc150d7aeac5a83d546775 (patch)
tree7c1938cd42cd8b6c39002869bf75252bc8aedfd2 /buildscripts/eslint.py
parent91196a0bed9277f6b170fdd0c1c79ed15b9295f5 (diff)
downloadmongo-80d05e9359bc527da0bc150d7aeac5a83d546775.tar.gz
SERVER-28465 Only run eslint on js files
Diffstat (limited to 'buildscripts/eslint.py')
-rwxr-xr-xbuildscripts/eslint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/eslint.py b/buildscripts/eslint.py
index f1c66c95973..c1ab04fbab9 100755
--- a/buildscripts/eslint.py
+++ b/buildscripts/eslint.py
@@ -192,7 +192,7 @@ class ESLint(object):
def is_interesting_file(file_name):
""""Return true if this file should be checked
"""
- return (file_name.startswith("src/mongo") or file_name.startswith("jstests") \
+ return ((file_name.startswith("src/mongo") or file_name.startswith("jstests"))
and file_name.endswith(".js"))
def _get_build_dir():