Bug 1270596 - Upgrade to ESLint 2.9.0. r=ahal
MozReview-Commit-ID: IylFUWf1HVG
--- a/python/mach_commands.py
+++ b/python/mach_commands.py
@@ -265,21 +265,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 1.10.3.
+ # Install eslint.
# Note that that's the version currently compatible with the mozilla
# eslint plugin.
success = self.callProcess("eslint",
- [npmPath, "install", "eslint@2.8.0", "-g"])
+ [npmPath, "install", "eslint@2.9.0", "-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:
--- a/testing/docker/lint/Dockerfile
+++ b/testing/docker/lint/Dockerfile
@@ -1,17 +1,17 @@
FROM node:4.2
MAINTAINER Dave Townsend <dtownsend@oxymoronical.com>
RUN useradd -d /home/worker -s /bin/bash -m worker
WORKDIR /home/worker
# install necessary npm packages
RUN npm install -g taskcluster-vcs@2.3.12
-RUN npm install -g eslint@2.8.0
+RUN npm install -g eslint@2.9.0
RUN npm install -g eslint-plugin-html@1.4.0
RUN npm install -g eslint-plugin-react@4.2.3
# Set variable normally configured at login, by the shells parent process, these
# are taken from GNU su manual
ENV HOME /home/worker
ENV SHELL /bin/bash
ENV USER worker