Bug 1346014: Update the minimum required version of node to 6.9.1. r?jaws
MozReview-Commit-ID: Ex0HiKWHfwK
--- a/tools/lint/eslint.lint
+++ b/tools/lint/eslint.lint
@@ -30,17 +30,17 @@ environment variable, and then at your l
eslint and needed plugins with:
mach eslint --setup
and try again.
""".strip()
NODE_NOT_FOUND_MESSAGE = """
-nodejs v4.2.3 is either not installed or is installed to a non-standard path.
+nodejs v6.9.1 is either not installed or is installed to a non-standard path.
Please install nodejs from https://nodejs.org and try again.
Valid installation paths:
""".strip()
NPM_NOT_FOUND_MESSAGE = """
Node Package Manager (npm) is either not installed or installed to a
non-standard path. Please install npm from https://nodejs.org (it comes as an
@@ -259,18 +259,18 @@ def get_eslint_module_path():
def lint(paths, binary=None, fix=None, setup=None, **lintargs):
"""Run eslint."""
global project_root
project_root = lintargs['root']
module_path = get_eslint_module_path()
- # eslint requires at least node 4.2.3
- node_path = get_node_or_npm_path("node", LooseVersion("4.2.3"))
+ # eslint requires at least node 6.9.1
+ node_path = get_node_or_npm_path("node", LooseVersion("6.9.1"))
if not node_path:
return 1
if setup:
return eslint_setup()
npm_path = get_node_or_npm_path("npm")
if not npm_path: