From 22b284105255408d7aa9967c6d37a359778eff85 Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Tue, 16 Feb 2016 10:01:11 +0100 Subject: [PATCH] Bug 1248360 - Set eslint version to 1.10.3 when setting it up via mach MozReview-Commit-ID: LmKsvGzj3fo --- python/mach_commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/mach_commands.py b/python/mach_commands.py index 23ff6fe09a9..c58bf9357e2 100644 --- a/python/mach_commands.py +++ b/python/mach_commands.py @@ -219,9 +219,11 @@ class MachCommands(MachCommandBase): if not npmPath: return 1 - # Install eslint. + # Install eslint 1.10.3. + # Note that that's the version currently compatible with the mozilla + # eslint plugin. success = self.callProcess("eslint", - [npmPath, "install", "eslint", "-g"]) + [npmPath, "install", "eslint@1.10.3", "-g"]) if not success: return 1