Skip to content

Commit b0ddcda

Browse files
authored
chore: update compiler target to es2022 (#811)
1 parent 6987b4d commit b0ddcda

File tree

19 files changed

+2
-37
lines changed

19 files changed

+2
-37
lines changed

jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"checkJs": true,
4-
"target": "es2017",
4+
"target": "es2022",
55
"module": "nodenext",
66
"moduleResolution": "nodenext",
77
"resolveJsonModule": true,

src/extension/app/store/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,6 @@ export class AppStore {
11731173

11741174
/**
11751175
* Shows the view.
1176-
* @private
11771176
*/
11781177
async showView() {
11791178
if (!this.isProject()) {

src/extension/ui.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ let updateInProgress = false;
5353
* @returns {Object<number, string>} The icon paths
5454
*/
5555
function getPaths(type) {
56+
/** @type {Object<number, string>} */
5657
const paths = {};
5758
for (const size of ICON_SIZES) {
5859
paths[size] = `icons/${type}/icon-${size}x${size}.png`;
5960
}
60-
// @ts-ignore
6161
return paths;
6262
}
6363

@@ -223,7 +223,6 @@ if (chrome.contextMenus) {
223223
window.hlx = window.hlx || {};
224224
window.hlx.sidekick = window.hlx.sidekick || { location: window.location };
225225

226-
// @ts-ignore
227226
const action = `${menuItemIdVal}`.replaceAll(/([A-Z])/g, `-${'$1'}`).toLowerCase();
228227
sampleRUM('click', {
229228
source: 'sidekick',

test/app/components/action-bar/activity-action.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies, max-len */
1414

15-
// @ts-ignore
1615
import {
1716
expect,
1817
waitUntil,

test/app/components/bulk/bulk-info.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies, max-len */
1414

15-
// @ts-ignore
1615
import { expect, waitUntil } from '@open-wc/testing';
1716
import { AppStore } from '../../../../src/extension/app/store/app.js';
1817
import { SidekickTest } from '../../../sidekick-test.js';

test/app/components/bulk/bulk-modal.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies, max-len */
1414

15-
// @ts-ignore
1615
import {
1716
expect, waitUntil, aTimeout,
1817
} from '@open-wc/testing';

test/app/components/bulk/bulk-result.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies, max-len */
1414

15-
// @ts-ignore
1615
import { expect, waitUntil } from '@open-wc/testing';
1716
import { AppStore } from '../../../../src/extension/app/store/app.js';
1817
import { SidekickTest } from '../../../sidekick-test.js';

test/app/components/modal/modal.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies, max-len */
1414

15-
// @ts-ignore
1615
import {
1716
expect, waitUntil, aTimeout,
1817
} from '@open-wc/testing';

test/app/components/onboarding/onboarding-modal.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies */
1313

14-
// @ts-ignore
1514
import { expect, waitUntil } from '@open-wc/testing';
1615
import { recursiveQuery, recursiveQueryAll } from '../../../test-utils.js';
1716
import chromeMock from '../../../mocks/chrome.js';

test/app/components/plugin/palette-container.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies */
1313

14-
// @ts-ignore
1514
import { expect, waitUntil } from '@open-wc/testing';
1615
import { recursiveQuery, recursiveQueryAll } from '../../../test-utils.js';
1716
import chromeMock from '../../../mocks/chrome.js';

0 commit comments

Comments
 (0)