Bug 1306366 - mach eslint no longer accepts --no-ignore as a parameter. r?ahal
MozReview-Commit-ID: LpT0Qlv6vsE
--- a/tools/lint/mach_commands.py
+++ b/tools/lint/mach_commands.py
@@ -50,11 +50,12 @@ class MachCommands(MachCommandBase):
@CommandArgument('-s', '--setup', default=False, action='store_true',
help='Configure eslint for optimal development.')
@CommandArgument('-b', '--binary', default=None,
help='Path to eslint binary.')
@CommandArgument('--fix', default=False, action='store_true',
help='Request that eslint automatically fix errors, where possible.')
@CommandArgument('extra_args', nargs=argparse.REMAINDER,
help='Extra args that will be forwarded to eslint.')
- def eslint(self, paths, **kwargs):
+ def eslint(self, paths, extra_args=[], **kwargs):
self._mach_context.commands.dispatch('lint', self._mach_context,
- linters=['eslint'], paths=paths, **kwargs)
+ linters=['eslint'], paths=paths,
+ argv=extra_args, **kwargs)