gecko-dev/package.json
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

33 lines
1.2 KiB
JSON

{
"name": "mozilla-central",
"description": "This package file is for node modules used in mozilla-central",
"repository": {},
"license": "MPL-2.0",
"dependencies": {},
"devDependencies": {
"@babel/core": "7.8.3",
"@babel/plugin-syntax-nullish-coalescing-operator": "7.8.3",
"@babel/plugin-syntax-optional-chaining": "7.8.3",
"babel-eslint": "10.1.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.0",
"eslint-plugin-babel": "5.3.0",
"eslint-plugin-fetch-options": "0.0.5",
"eslint-plugin-file-header": "0.0.1",
"eslint-plugin-flowtype": "4.6.0",
"eslint-plugin-html": "6.0.0",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-jest": "22.21.0",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-mozilla": "file:tools/lint/eslint/eslint-plugin-mozilla",
"eslint-plugin-no-unsanitized": "3.0.2",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-react": "7.18.3",
"eslint-plugin-spidermonkey-js": "file:tools/lint/eslint/eslint-plugin-spidermonkey-js",
"prettier": "1.19.1",
"yarn": "1.22.0"
},
"notes(private)": "We don't want to publish to npm, so this is marked as private",
"private": true
}