chore(lint): remove ESLint configuration file and update lint scripts
- Deleted the .eslintrc.cjs file to simplify configuration management. - Updated lint scripts in package.json to remove unnecessary extensions for linting. - Added new devDependencies for ESLint and globals to enhance linting capabilities.
This commit is contained in:
@@ -70,7 +70,7 @@ function writeToFile(formatted: string): void {
|
||||
if (logFilePath) {
|
||||
try {
|
||||
appendFileSync(logFilePath, formatted + '\n');
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Silently fail if we can't write to file
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
import { safeStorage } from 'electron';
|
||||
|
||||
// Lazy-load electron-store (ESM module)
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
let store: any = null;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
let providerStore: any = null;
|
||||
|
||||
async function getStore() {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
import { randomBytes } from 'crypto';
|
||||
|
||||
// Lazy-load electron-store (ESM module)
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
let settingsStoreInstance: any = null;
|
||||
|
||||
/**
|
||||
@@ -142,7 +143,7 @@ export async function importSettings(json: string): Promise<void> {
|
||||
const settings = JSON.parse(json);
|
||||
const store = await getSettingsStore();
|
||||
store.set(settings);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
throw new Error('Invalid settings JSON');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user