Skip to content

Commit

Permalink
V6.0.0 - Run precommit step, add biome CI
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT committed Jun 24, 2024
1 parent f39db70 commit 2728d9c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/biome.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: Setup Biome CLI
uses: biomejs/setup-biome@v2

- name: Run Biome
run: biome ci .
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "astro preview",
"typecheck": "astro check",
"astro": "astro",
"precommit": "pnpm lint && pnpm format && pnpm typecheck",
"precommit": "pnpm lint && pnpm format && biome check --write . && pnpm typecheck",
"lint": "biome lint --write .",
"format": "prettier --write . && biome format --write ."
},
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Main.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { AppWindow, Gamepad2, LayoutGrid, Settings2, Wrench } from "lucide-astro";
import Obfuscated from "@/components/Obfuscated.astro";
import { AppWindow, Gamepad2, LayoutGrid, Settings2, Wrench } from "lucide-astro";
import Layout from "./Layout.astro";
const navLinks = [
{ href: "/ap", text: "Apps", Icon: LayoutGrid },
Expand Down
2 changes: 1 addition & 1 deletion src/lib/asset-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ document.addEventListener("astro:page-load", () => {
) as NodeListOf<HTMLButtonElement>;
for (const button of buttons) {
button.addEventListener("click", () => {
const asset: Asset = JSON.parse(button.dataset.asset!);
const asset: Asset = JSON.parse(button.dataset.asset as string);
if (asset.say) alert(asset.say);
if (asset.link) {
sessionStorage.setItem("goUrl", asset.link);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ap.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import { Image } from "astro:assets";
import { LayoutGrid } from "lucide-astro";
import Obfuscated from "@/components/Obfuscated.astro";
import Layout from "@/layouts/Main.astro";
import { ASSET_URL, type Asset } from "@/lib/asset";
import { LayoutGrid } from "lucide-astro";
const apps: Asset[] = await (await fetch(`${ASSET_URL}/json/apps.json`)).json();
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/ga.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import { Image } from "astro:assets";
import { Gamepad2 } from "lucide-astro";
import Obfuscated from "@/components/Obfuscated.astro";
import Layout from "@/layouts/Main.astro";
import { ASSET_URL, type Asset } from "@/lib/asset";
import { Gamepad2 } from "lucide-astro";
const games: Asset[] = await (await fetch(`${ASSET_URL}/json/games.json`)).json();
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/to.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import { Image } from "astro:assets";
import { Wrench } from "lucide-astro";
import Obfuscated from "@/components/Obfuscated.astro";
import Layout from "@/layouts/Main.astro";
import { ASSET_URL, type Asset } from "@/lib/asset";
import { Wrench } from "lucide-astro";
const tools: Asset[] = await (await fetch(`${ASSET_URL}/json/tools.json`)).json();
---

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
}
},
"exclude": ["node_modules", "dist", "public/assets/bundled/**"]
}

0 comments on commit 2728d9c

Please sign in to comment.