gecko-dev/tools/lint
Dave Townsend 6ed37285b4 Bug 1622717: When parsing an AST allow the chosen parser to override the default scope manager and visitor keys. r=Standard8
There appears to be a bug in babel-eslint where it still uses the old
`ExperimentalSpreadProperty` and `ExperimentalRestProperty` node types when
babel itself (and hence the AST visitor keys) have switched to `SpreadElement`
and `RestElement`. I suspect there isn't much point in filing a babel-eslint
issue for this, they are currently in the process of working on v11 which does
fix the issue but is currently only available as a beta release.

There are three alternatives:

1. Use the beta babel-eslint.
2. Hack the visitor keys to include the old node types.
3. Traverse the AST changing the nodes from the old types to the new types.

Using a beta version is probably not a great idea so this patch does 2 which is
the simplest of the other options. It does have the drawback however that if
any eslint rules we use rely on the new node type names they will fail to work.

Differential Revision: https://phabricator.services.mozilla.com/D66998

--HG--
extra : moz-landing-system : lando
2020-03-23 12:58:28 +00:00
..
android
clippy Bug 1361341 - Add rust clippy to mozlint r=ahal 2020-02-19 08:50:35 +00:00
cpp
docs/coding-style Bug 1613526 - Create a code quality documentation and move the appropriate docs r=ahal 2020-02-11 09:11:44 +00:00
eslint Bug 1622717: When parsing an AST allow the chosen parser to override the default scope manager and visitor keys. r=Standard8 2020-03-23 12:58:28 +00:00
file-perm
file-whitespace
libpref Bug 1603674 - Add a new API to check if permission delegation and Feature Policy are enabled r=baku 2020-01-06 15:28:12 +00:00
license Bug 1622328 - license list: remove the refreshed items r=ahal 2020-03-19 21:18:55 +00:00
perfdocs Bug 1620163 Fix perfdocs to not skip missing tests r=sparky,perftest-reviewers 2020-03-05 13:13:00 +00:00
python no bug - mozlint/flake8 - Show the flake8 version in debug mode r=linter-reviewers,ahal 2020-03-20 18:49:09 +00:00
rst
rust Bug 1605106 - [lint.rustfmt] Return early if expanding exclusions results in no paths to lint, r=jwatt 2020-01-02 16:48:35 +00:00
shell Bug 1623433 - [mozlint] Create a LintProcess utility class to consolidate some of our lint implementations, r=linter-reviewers,sylvestre 2020-03-19 14:47:34 +00:00
spell Bug 1623433 - [mozlint] Create a LintProcess utility class to consolidate some of our lint implementations, r=linter-reviewers,sylvestre 2020-03-19 14:47:34 +00:00
test Bug 1623320 - Add support to run mozlint on dotfile r=linter-reviewers,ahal 2020-03-20 21:51:03 +00:00
tox
wpt
yamllint_ Bug 1623433 - [mozlint] Create a LintProcess utility class to consolidate some of our lint implementations, r=linter-reviewers,sylvestre 2020-03-19 14:47:34 +00:00
android-api-lint.yml
android-checkstyle.yml
android-javadoc.yml
android-lint.yml
android-test.yml
clippy.yml Backed out changeset 156832378185 (bug 1619094) for build bustages. CLOSED TREE 2020-03-03 19:19:08 +02:00
codespell.yml no bug - mozlint/codespell - Add two docs directories in the list + fix typos r=marco DONTBUILD 2020-03-09 10:43:14 +00:00
cpp-virtual-final.yml
eslint.yml
file-perm.yml
file-whitespace.yml Bug 1573418 Run Talos harness tests in CI r=rwood,igoldan,perftest-reviewers 2020-01-29 08:29:13 +00:00
flake8.yml
hooks_clang_format.py Bug 1623741 - [mozlint] Use python3 and include mozfile now that mozversioncontrol uses it r=gbrown 2020-03-19 21:34:11 +00:00
hooks_js_format.py Bug 1623741 - [mozlint] Use python3 and include mozfile now that mozversioncontrol uses it r=gbrown 2020-03-19 21:34:11 +00:00
hooks.py
l10n.yml
license.yml Bug 1623320 - mozlint - Run license analysis on dotfiles r=linter-reviewers,ahal DONTBUILD 2020-03-21 10:20:32 +00:00
lintpref.yml
mach_commands.py Bug 1622974 - Add mozlint parameter to set additional config file path. r=ahal 2020-03-20 17:12:27 +00:00
mingw-capitalization.yml
perfdocs.yml Bug 1587080 - Part 2: Integrate perfdocs into mozlint. r=ahal 2019-12-10 17:04:33 +00:00
py2.yml Bug 1623132 - Rewrite printconfigsetting to use configparser, python 3 r=rstewart 2020-03-18 15:07:24 +00:00
py3.yml Bug 1559975 - Make layout/tools/reftest lint with 'py2' and 'py3' r=catlee 2019-12-26 21:17:55 +00:00
rst.yml
rustfmt.yml Bug 1563915 - rustmft: Move from a include list to a skip list r=ahal 2020-03-10 09:29:25 +00:00
shellcheck.yml
test-disable.yml
wpt.yml
yaml.yml