Bug 1279210 - eslint setup: fix eslint module path;r=ahal draft
authorJulian Descottes <jdescottes@mozilla.com>
Thu, 09 Jun 2016 14:40:48 +0200
changeset 377013 8169cbc543528a6b2a6e2bffbf4a202dfcea1a93
parent 377012 1c86ba5d7a5b9cb16ef3ad77ff740688a923108a
child 523293 06a1c7fc46ea5edd18d65ea3fb694345d6bd076f
push id20727
push userjdescottes@mozilla.com
push dateThu, 09 Jun 2016 12:42:00 +0000
reviewersahal
bugs1279210
milestone50.0a1
Bug 1279210 - eslint setup: fix eslint module path;r=ahal MozReview-Commit-ID: HL4tIwgkSau
tools/lint/mach_commands.py
--- a/tools/lint/mach_commands.py
+++ b/tools/lint/mach_commands.py
@@ -379,17 +379,17 @@ class MachCommands(MachCommandBase):
         except (subprocess.CalledProcessError, OSError):
             return False
 
     def get_project_root(self):
         fullpath = os.path.abspath(sys.modules['__main__'].__file__)
         return os.path.dirname(fullpath)
 
     def get_eslint_module_path(self):
-        return os.path.join(self.get_project_root(), "testing", "eslint")
+        return os.path.join(self.get_project_root(), "tools", "lint", "eslint")
 
     def _prompt_yn(self, msg):
         if not sys.stdin.isatty():
             return False
 
         print('%s? [Y/n]' % msg)
 
         while True: