Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ jobs:
uses: biomejs/setup-biome@v2

- name: Run Biome
run: biome ci --error-on-warnings --formatter-enabled=false --assist-enabled=false --enforce-assist=false --css-linter-enabled=false src


run: |
biome ci --error-on-warnings src
7 changes: 1 addition & 6 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@ pre-commit:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
root: "react/"
run: bunx --bun biome check --write --error-on-warnings --colors=off {staged_files}
stage_fixed: true
rustywind:
glob: "*.{js,ts,jsx,tsx}"
root: "react/"
run: bunx --bun rustywind --write {staged_files}
run: bunx biome check --write --error-on-warnings {staged_files}
stage_fixed: true
23 changes: 6 additions & 17 deletions react/biome.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
"files": {
"ignoreUnknown": true,
"includes": [
"**",
"!**/node_modules/",
"!**/node_modules",
"!**/.vscode",
"!**/.idea",
"!**/public/",
"!**/public",
"!**/dist",
"!**/bun.lock"
"!**/bun.lock",
"!**/src/index.css"
]
},
"formatter": {
Expand All @@ -23,19 +24,7 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
"recommended": true
}
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
Expand Down
229 changes: 105 additions & 124 deletions react/bun.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions react/bunfig.toml

This file was deleted.

19 changes: 5 additions & 14 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
"type": "module",
"scripts": {
"dev": "bunx --bun vite",
"build": "tsc && bunx --bun vite build",
"build": "bunx --bun tsc && vite build",
"preview": "bunx --bun vite preview",
"check": "biome check --write --unsafe --error-on-warnings .",
"migrate": "biome migrate --write",
"postinstall": "lefthook install"
"check": "biome check --error-on-warnings --write ."
},
"dependencies": {
"@radix-ui/react-accordion": "^1.2.12",
Expand All @@ -33,20 +31,13 @@
"@types/node": "^24.3.0",
"@types/react": "^19.1.11",
"@types/react-dom": "^19.1.7",
"@vitejs/plugin-react-swc": "^4.0.1",
"bun-plugin-tailwind": "^0.0.15",
"@vitejs/plugin-react": "^5.0.1",
"lefthook": "^1.12.3",
"rustywind": "^0.24.3",
"tailwindcss": "^4.1.12",
"typescript": "^5.9.2",
"vite": "^7.1.3"
"vite": "npm:rolldown-vite@latest"
},
"trustedDependencies": [
"@swc/core",
"@tailwindcss/oxide",
"browser-tabs-lock",
"esbuild",
"lefthook",
"rustywind"
"lefthook"
]
}
7 changes: 5 additions & 2 deletions react/src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ChevronDown } from "lucide-react";
import { useId } from "react";
import { Link } from "react-router";

import { Navbar } from "@/components/app/navbar";
Expand Down Expand Up @@ -45,6 +46,8 @@ function MenuAnchorButton({ targetId, className }: Readonly<MenuAnchorProps>) {
);
}
function Index() {
const aboutSection = useId();

return (
<>
<Navbar />
Expand Down Expand Up @@ -81,13 +84,13 @@ function Index() {
</div>

<div className="flex flex-col items-center md:pt-7">
<MenuAnchorButton targetId="about-section" />
<MenuAnchorButton targetId={aboutSection} />
</div>
</section>

{/* Introduction section */}
<section
id="about-section"
id={aboutSection}
className="container py-8 mx-auto md:py-12 px-18"
>
<div className="flex flex-col items-center md:flex-row">
Expand Down
2 changes: 1 addition & 1 deletion react/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "node:path";

import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react-swc";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

// https://vitejs.dev/config/
Expand Down
Loading