Skip to content

Commit

Permalink
Bug 1725934 - Remove unnecessary babel plugin, and update node module…
Browse files Browse the repository at this point in the history
…s 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
  • Loading branch information
Standard8 committed Aug 18, 2021
1 parent f6115a7 commit 9383f3e
Show file tree
Hide file tree
Showing 9 changed files with 1,723 additions and 1,591 deletions.
1 change: 0 additions & 1 deletion .babel-eslint.rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

module.exports = {
plugins: [
"@babel/plugin-syntax-class-properties",
"@babel/plugin-syntax-jsx",
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2,114 changes: 1,024 additions & 1,090 deletions package-lock.json

Large diffs are not rendered by default.

21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."
);
Expand All @@ -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."
);
Expand Down
4 changes: 2 additions & 2 deletions tools/lint/eslint/eslint-plugin-mozilla/manifest.tt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"visibility": "public",
"filename": "eslint-plugin-mozilla.tar.gz",
"unpack": true,
"digest": "0a3b580acd0358dcacb30bc6d42a885b32b9979cf9e91e71ac9df229126b2d45c3f09fa8bec6ce2f5665d6030adabef3d2330ad7157662d70b278914acd7a8db",
"size": 8132937
"digest": "266acbe8ba472f890bc0474d8bbd978cdedc1890e588d266a7f7d5527abaab1c9a6e7ae91293ac4fc33c63f6dac38d941c8ba7d65cdc085ecbb05742b4972470",
"size": 8346297
}
]
Loading

0 comments on commit 9383f3e

Please sign in to comment.