Bug 1383318 - get rid of a dead `global` in eslint configuration. r=ahal
authorTom Prince <mozilla@hocat.ca>
Fri, 21 Jul 2017 16:56:09 -0600
changeset 422189 39910d1c80f9d0e8f4c4154cc399ae066bd8b07d
parent 422188 c2588069255553f1b24e18658fd524cb62e35457
child 422190 db8bba429daa2c2c9aa5cac79fefcb84b46dced1
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1383318
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1383318 - get rid of a dead `global` in eslint configuration. r=ahal MozReview-Commit-ID: 2SZyO8KSVD5
tools/lint/eslint/__init__.py
--- a/tools/lint/eslint/__init__.py
+++ b/tools/lint/eslint/__init__.py
@@ -29,17 +29,16 @@ eslint and needed plugins with:
 mach eslint --setup
 
 and try again.
 """.strip()
 
 
 def lint(paths, config, binary=None, fix=None, setup=None, **lintargs):
     """Run eslint."""
-    global project_root
     setup_helper.set_project_root(lintargs['root'])
 
     module_path = setup_helper.get_project_root()
 
     if not setup_helper.check_node_executables_valid():
         return 1
 
     if setup: