Skip to content

Commit

Permalink
more bioming
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeAspy committed Sep 19, 2024
1 parent b028228 commit cfff876
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 33 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ESLint.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Code quality

on: [push, pull_request]

jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci .
4 changes: 2 additions & 2 deletions src/main/discord/discordWindow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BrowserWindow } from "electron";
import { getConfig } from "../../shared/config.js";
import { join } from "node:path";
import RPCServer from "arrpc";
import { BrowserWindow } from "electron";
import { getConfig } from "../../shared/config.js";

export async function createDiscordWindow() {
const window = new BrowserWindow({
Expand Down
2 changes: 1 addition & 1 deletion src/main/functions/fetchMods.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { app } from "electron";
import { writeFileSync } from "node:fs";
import { join } from "node:path";
import { app } from "electron";
import { getConfig } from "../../shared/config.js";

async function fetchMod(fileName: string, url: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/ipc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { app, ipcMain } from "electron";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { app, ipcMain } from "electron";
import { getConfig } from "../shared/config.js";

ipcMain.handle("getShelter", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { app } from "electron";
import { createDiscordWindow } from "./discord/discordWindow.js";
import "./startup.js";
import "./ipc.js";
import { getConfig } from "../shared/config.js";
import { fetchMods } from "./functions/fetchMods.js";
import { startTray } from "./tray.js";
import { getConfig } from "../shared/config.js";

await fetchMods();

Expand Down
2 changes: 1 addition & 1 deletion src/main/tray.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { app, Menu, nativeImage, Tray, type WebContents } from "electron";
import { Menu, Tray, type WebContents, app, nativeImage } from "electron";
import icon from "../../resources/placeholderTrayIcon.png?asset";

export function startTray(pageData: WebContents) {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFileSync, writeFileSync } from "node:fs";
import { app } from "electron";
import type { Config } from "../@types/config.js";
import { readFileSync, writeFileSync } from "node:fs";

const configLocation = `${app.getPath("userData")}/config.json`;

Expand Down

0 comments on commit cfff876

Please sign in to comment.