From 49fc9de9edcf28bf88dd33587a546a573c13658d Mon Sep 17 00:00:00 2001 From: Topvennie Date: Fri, 17 Jan 2025 20:57:15 +0100 Subject: [PATCH] vinvoor: typechecks --- vinvoor/src/footer/Footer.tsx | 1 + vinvoor/vite.config.ts | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/vinvoor/src/footer/Footer.tsx b/vinvoor/src/footer/Footer.tsx index ac765cc..e1c696e 100644 --- a/vinvoor/src/footer/Footer.tsx +++ b/vinvoor/src/footer/Footer.tsx @@ -44,6 +44,7 @@ export function Footer() { v + {/* @ts-ignore */} {__APP_VERSION__} diff --git a/vinvoor/vite.config.ts b/vinvoor/vite.config.ts index aadd7d0..10eb976 100644 --- a/vinvoor/vite.config.ts +++ b/vinvoor/vite.config.ts @@ -2,10 +2,10 @@ import react from "@vitejs/plugin-react-swc"; import { defineConfig } from "vite"; import svgr from "vite-plugin-svgr"; -const generateRandomVersion = () => { +function generateRandomVersion() { const minor = Math.floor(Math.random() * 10); - const patch = Math.floor(Math.random() * 100).toString().padStart(2, '0'); - return `1.${minor}.${patch}` + const patch = Math.floor(Math.random() * 100).toString().padStart(2, "0"); + return `1.${minor}.${patch}`; } const appVersion = generateRandomVersion(); @@ -14,6 +14,6 @@ const appVersion = generateRandomVersion(); export default defineConfig({ plugins: [svgr(), react()], define: { - __APP_VERSION__: JSON.stringify(appVersion) - } + __APP_VERSION__: JSON.stringify(appVersion), + }, });