Bug 1248360 - Set eslint version to 1.10.3 when setting it up via mach
MozReview-Commit-ID: LmKsvGzj3fo
--- a/python/mach_commands.py
+++ b/python/mach_commands.py
@@ -214,19 +214,21 @@ class MachCommands(MachCommandBase):
eslint for optimal use on Mozilla projects.
"""
sys.path.append(os.path.dirname(__file__))
npmPath = self.getNodeOrNpmPath("npm")
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
# Install eslint-plugin-mozilla.
success = self.callProcess("eslint-plugin-mozilla",
[npmPath, "link"],
"testing/eslint-plugin-mozilla")
if not success: