From a56f9d6b1afa79d334a598c5cb1843f98052db57 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Wed, 3 Oct 2018 14:44:19 +0000 Subject: [PATCH] Bug 1496080 - Fix ./mach eslint --fix. r=ahal Insert the argument in the correct place when passing to node. Differential Revision: https://phabricator.services.mozilla.com/D7609 --HG-- extra : moz-landing-system : lando --- tools/lint/eslint/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint/eslint/__init__.py b/tools/lint/eslint/__init__.py index f1da9f16feeb..a64831065704 100644 --- a/tools/lint/eslint/__init__.py +++ b/tools/lint/eslint/__init__.py @@ -74,7 +74,7 @@ def lint(paths, config, binary=None, fix=None, setup=None, **lintargs): # eslint requires that --fix be set before the --ext argument. if fix: - cmd_args.insert(1, '--fix') + cmd_args.insert(2, '--fix') shell = False if os.environ.get('MSYSTEM') in ('MINGW32', 'MINGW64'):