chore: code quality audit and lint fixes
🔍 Lint / 🪄 Check lint (pull_request) Has been cancelled
🔍 Lint / 🎨 Check format (pull_request) Has been cancelled
🔍 Lint / 🔎 Typecheck (pull_request) Has been cancelled
📊 Quality / 🔒 Security Audit (pull_request) Has been cancelled
📊 Quality / 📋 Dependency Freshness (pull_request) Has been cancelled
📊 Quality / 📦 Bundle Size (pull_request) Has been cancelled
🔍 Lint / 🏗 Build (pull_request) Has been cancelled

- Fix all 63 ESLint errors across codebase
- Consolidate MaterialWithTextureSlots type in src/types/three/three.ts
- Add CSS custom properties for design tokens
- Extract ebike constants to src/data/ebike/ebikeConfig.ts
- Add proper TypeScript types for window extensions
- Fix React hooks violations (refs during render, setState in effects)
- Remove unused exports and redundant CSS
- Add type guards for Three.js material handling
- Clean up AI slop comments and legacy CSS patterns
This commit is contained in:
Tom Boullay
2026-05-29 09:00:04 +02:00
parent ade301389e
commit 52bb1b2915
18 changed files with 550 additions and 465 deletions
+6 -4
View File
@@ -38,8 +38,6 @@ export function useGPS({
// Initialize the pathfinding grid
useEffect(() => {
let active = true;
setLoading(true);
setError(null);
async function initGrid() {
try {
@@ -63,9 +61,13 @@ export function useGPS({
colorMapImgRef.current = colorMapImg;
setLoading(false);
}
} catch (err: any) {
} catch (err: unknown) {
if (active) {
setError(err.message || "Failed to initialize GPS system");
const message =
err instanceof Error
? err.message
: "Failed to initialize GPS system";
setError(message);
setLoading(false);
}
}
+6 -4
View File
@@ -23,8 +23,6 @@ export function useWaypointGPS({
// Load waypoint list and background color map image
useEffect(() => {
let active = true;
setLoading(true);
setError(null);
async function initGPS() {
try {
@@ -49,9 +47,13 @@ export function useWaypointGPS({
colorMapImgRef.current = colorMapImg;
setLoading(false);
}
} catch (err: any) {
} catch (err: unknown) {
if (active) {
setError(err.message || "Failed to initialize Waypoint GPS");
const message =
err instanceof Error
? err.message
: "Failed to initialize Waypoint GPS";
setError(message);
setLoading(false);
}
}