Bug 1383318 - get rid of a dead `global` in eslint configuration. draft
authorTom Prince <mozilla@hocat.ca>
Fri, 21 Jul 2017 16:56:09 -0600
changeset 613431 a35d3764b574baa532db385b02944356dd242ef5
parent 613116 e99e3e62cfa8bbc7d430f64d4fbdf77ffb81e979
child 638676 9f28030102ccfae10c622c2d76d5a49fc2f8ca64
push id69798
push userbmo:mozilla@hocat.ca
push dateFri, 21 Jul 2017 22:56:41 +0000
bugs1383318
milestone56.0a1
Bug 1383318 - get rid of a dead `global` in eslint configuration. 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: