Bug 1725934 - Remove unnecessary babel plugin, and update node modules to the latest versions. r=Mardak

plugin-syntax-class-properties was supported by default in Babel 7.14.0.
This also adds top level await support in modules with the upgrade to Babel 7.15.0.

Differential Revision: https://phabricator.services.mozilla.com/D122865
This commit is contained in:
Mark Banner 2021-08-18 07:44:47 +00:00
Родитель f6115a7b6d
Коммит 9383f3e40e
9 изменённых файлов: 1715 добавлений и 1583 удалений

Просмотреть файл

@ -4,7 +4,6 @@
module.exports = {
plugins: [
"@babel/plugin-syntax-class-properties",
"@babel/plugin-syntax-jsx",
],
};

Просмотреть файл

@ -129,6 +129,8 @@ add_task(async function() {
EventUtils.synthesizeKey("x");
await waitForTime(5);
EventUtils.synthesizeKey("KEY_Enter");
// TODO: Bug 1726037.
// eslint-disable-next-line no-sequences
await Promise.all[(onPopupClosed, onMessage)];
is(
getInputValue(hud),

2102
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -4,29 +4,26 @@
"repository": {},
"license": "MPL-2.0",
"devDependencies": {
"@babel/core": "7.14.3",
"@babel/eslint-parser": "7.14.3",
"@babel/eslint-plugin": "7.13.16",
"@babel/plugin-proposal-class-static-block": "7.14.3",
"@babel/plugin-syntax-class-properties": "7.12.13",
"@babel/core": "7.15.0",
"@babel/eslint-parser": "7.15.0",
"@babel/eslint-plugin": "7.14.5",
"@babel/plugin-syntax-jsx": "7.12.13",
"@babel/plugin-transform-react-jsx": "7.14.3",
"eslint": "7.26.0",
"eslint-config-prettier": "8.1.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-fetch-options": "0.0.5",
"eslint-plugin-file-header": "0.0.1",
"eslint-plugin-html": "6.1.2",
"eslint-plugin-import": "2.23.2",
"eslint-plugin-import": "2.24.0",
"eslint-plugin-jest": "23.20.0",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-mozilla": "file:tools/lint/eslint/eslint-plugin-mozilla",
"eslint-plugin-no-unsanitized": "3.1.5",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-react": "7.23.2",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "7.24.0",
"eslint-plugin-spidermonkey-js": "file:tools/lint/eslint/eslint-plugin-spidermonkey-js",
"jsdoc": "3.6.7",
"prettier": "1.19.1",
"yarn": "1.22.10"
"yarn": "1.22.11"
},
"notes(private)": "We don't want to publish to npm, so this is marked as private",
"private": true

Просмотреть файл

@ -37,6 +37,8 @@ add_task(async function test_certificateTabLink() {
issuerNames[i].shadowRoot.querySelector("a").click();
await ContentTaskUtils.waitForCondition(() => {
return (
// TODO: Bug 1726041
// eslint-disable-next-line no-sequences
certificateTabs[i + 1].classList.contains("selected"),
"Clicking link should select new tab."
);
@ -48,6 +50,8 @@ add_task(async function test_certificateTabLink() {
} else {
await ContentTaskUtils.waitForCondition(() => {
return (
// TODO: Bug 1726041
// eslint-disable-next-line no-sequences
certificateTabs[i].classList.contains("selected"),
"Clicking link should select new tab."
);

Просмотреть файл

@ -4,7 +4,7 @@
"visibility": "public",
"filename": "eslint-plugin-mozilla.tar.gz",
"unpack": true,
"digest": "0a3b580acd0358dcacb30bc6d42a885b32b9979cf9e91e71ac9df229126b2d45c3f09fa8bec6ce2f5665d6030adabef3d2330ad7157662d70b278914acd7a8db",
"size": 8132937
"digest": "266acbe8ba472f890bc0474d8bbd978cdedc1890e588d266a7f7d5527abaab1c9a6e7ae91293ac4fc33c63f6dac38d941c8ba7d65cdc085ecbb05742b4972470",
"size": 8346297
}
]

1150
tools/lint/eslint/eslint-plugin-mozilla/package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -20,8 +20,8 @@
"author": "Mike Ratcliffe",
"main": "lib/index.js",
"dependencies": {
"@babel/core": "^7.14.3",
"@babel/eslint-parser": "^7.14.3",
"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.15.0",
"eslint-scope": "^5.1.1",
"eslint-visitor-keys": "^2.1.0",
"estraverse": "^4.3.0",
@ -30,8 +30,8 @@
"sax": "^1.2.4"
},
"devDependencies": {
"eslint": "7.26.0",
"mocha": "8.3.2"
"eslint": "7.32.0",
"mocha": "9.0.3"
},
"peerDependencies": {
"eslint": "^7.23.0",
@ -40,7 +40,7 @@
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-no-unsanitized": "^3.0.0",
"eslint-plugin-prettier": "^3.0.0",
"prettier": "^1.17.0"
"prettier": "^1.19.1"
},
"engines": {
"node": ">=6.9.1"

Просмотреть файл

@ -4,7 +4,7 @@
"visibility": "public",
"filename": "eslint.tar.gz",
"unpack": true,
"digest": "8f7094e4cd4549d906dc6696834a516328d77185ceed3be8db3ecd70f690bea24348bbe6b7cbbddfb8f271a6937edbca1bb022deaf88017bde4d10da60bddf40",
"size": 24071687
"digest": "deca9445e06becc826ba95b08adb46e2233afa2eecd86aed59dbb4e234fa4a4c93be29ca2ab20806190c2280e772c42bcfeaf6f66f95f6c52852e085cf1c4d24",
"size": 24186992
}
]