chore: enable no-unused vars (#2181)

This commit is contained in:
Himself65
2023-04-28 00:41:06 -05:00
committed by GitHub
parent b6ca2aa063
commit 70fbbb39c1
70 changed files with 206 additions and 225 deletions

View File

@@ -20,11 +20,11 @@ const browserWindow = {
isDestroyed: () => {
return false;
},
setWindowButtonVisibility: (v: boolean) => {
setWindowButtonVisibility: (_v: boolean) => {
// will be stubbed later
},
webContents: {
send: (type: string, ...args: any[]) => {
send: (_type: string, ..._args: any[]) => {
// ...
},
},

View File

@@ -28,11 +28,11 @@ if (!isSingleInstance) {
process.exit(0);
}
app.on('second-instance', (event, argv) => {
app.on('second-instance', () => {
restoreOrCreateWindow();
});
app.on('open-url', async (_, url) => {
app.on('open-url', async (_, _url) => {
// todo: handle `affine://...` urls
});