style: add ban-ts-comment rule (#2738)

This commit is contained in:
LongYinan
2023-06-09 11:55:23 +08:00
committed by GitHub
parent c5a295a87b
commit 2e975e79dd
16 changed files with 139 additions and 91 deletions

View File

@@ -132,9 +132,9 @@ export function createApplicationMenu() {
},
];
// @ts-ignore The snippet is copied from Electron official docs.
// It's working as expected. No idea why it contains type errors.
// Just ignore for now.
// @ts-expect-error: The snippet is copied from Electron official docs.
// It's working as expected. No idea why it contains type errors.
// Just ignore for now.
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);