add eslint config (#53)

* eslint

* workflow

* lint main
This commit is contained in:
Ven
2022-10-06 00:42:58 +02:00
committed by GitHub
parent e563521416
commit 74c3930e0a
41 changed files with 141 additions and 87 deletions

View File

@ -1,5 +1,5 @@
import IPC_EVENTS from './utils/IpcEvents';
import { IpcRenderer, ipcRenderer } from 'electron';
import IPC_EVENTS from "./utils/IpcEvents";
import { IpcRenderer, ipcRenderer } from "electron";
function assertEventAllowed(event: string) {
if (!(event in IPC_EVENTS)) throw new Error(`Event ${event} not allowed.`);