Fix ESLint warnings and and enable max warnings 0 to fail builds (#2101)

This commit is contained in:
Zane
2025-04-09 15:13:53 -07:00
committed by GitHub
parent 0daff53110
commit 8451fb1c89
69 changed files with 968 additions and 685 deletions

View File

@@ -6,7 +6,7 @@ import log from './logger';
export const getBinaryPath = (app: Electron.App, binaryName: string): string => {
const isWindows = process.platform === 'win32';
const possiblePaths = [];
const possiblePaths: string[] = [];
if (isWindows) {
addPaths(isWindows, possiblePaths, `${binaryName}.exe`, app);
addPaths(isWindows, possiblePaths, `${binaryName}.cmd`, app);
@@ -33,7 +33,7 @@ export const getBinaryPath = (app: Electron.App, binaryName: string): string =>
const addPaths = (
isWindows: boolean,
possiblePaths: any[],
possiblePaths: string[],
executableName: string,
app: Electron.App
): void => {