Bug 1248360 - Set eslint version to 1.10.3 when setting it up via mach

MozReview-Commit-ID: LmKsvGzj3fo
This commit is contained in:
Patrick Brosset 2016-02-16 10:01:11 +01:00
parent 0970bd7a11
commit 22b2841052

View File

@ -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