<div dir="ltr"><div>There have been a bunch of improvements to our linting
infrastructure that landed in the past couple weeks, so figured I'd give
them a brief highlight:</div><div><ul><li>New --fix argument. Running
./mach lint --fix will best effort fix as many things as it can
in-place. Currently eslint is the only linter to support it, though bug <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1388721" id="inbox-inbox-m_-2675967567468263773inbox-inbox-yui_3_17_2_2_1503064710743_478" target="_blank">1388721</a> tracks supporting it with flake8. Errors that can't be fixed will be printed to stdout like normal<br></li><li>New
--edit argument. Running ./mach lint --edit will open errors in your
$EDITOR. For most editors, this is very naive (just opens each file
containing errors one at a time). But if using vim (or neovim), this
will open errors in the <a href="http://vimdoc.sourceforge.net/htmldoc/quickfix.html" target="_blank">quickfix list</a>.
You can pass both --edit and --fix at the same time, in which case
errors that can be fixed automatically will be, and the rest will be
opened in your editor.</li><li>Callek added <a href="https://github.com/adrienverge/yamllint" target="_blank">yamllint</a> linter. Run with ./mach lint -l yaml. If you use yaml, feel free to <a href="http://searchfox.org/mozilla-central/source/tools/lint/yaml.yml#4" target="_blank">add your path</a>.</li><li>New compact formatter. This mimics eslint's compact formatter, run ./mach lint -f compact to use it.</li><li>rajk enabled the 'dot-notation' eslint rule across the tree.</li><li>Satvik Daga enabled the 'no-new-wrappers' eslint rule across the tree.</li><li>Luciano I enabled the 'no-whitespace-before-property' eslint rule across the tree.<br></li><li>Callek added the ability to list linters. Use ./mach lint --list to see available linters.</li></ul><div>There are also a couple bug fixes:</div><div><ul><li>dyex fixed it so passing in a non-existent path now errors out rather than silently passing.</li><li>wpt linter no longer lints every file every time</li></ul><div>Cheers,</div><div>Andrew</div></div></div></div>