Bug 1279210 - eslint setup: fix eslint module path;r=ahal
authorJulian Descottes <jdescottes@mozilla.com>
Thu, 09 Jun 2016 14:40:48 +0200
changeset 301371 7fc8f70a567d4492607906d40532ef4a7124c8f5
parent 301370 a1f82506b9650be9d282f49fd16a4ea466ba0b72
child 301372 2ce7e838634b204dcec9487452cabc20d709c4d6
push id30333
push usercbook@mozilla.com
push dateFri, 10 Jun 2016 13:39:58 +0000
treeherdermozilla-central@52679ce4756c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1279210
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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: