From 7d68cce351c1b22fd1decc8edbd6e6544724dba2 Mon Sep 17 00:00:00 2001 From: Arif Hasanic Date: Sat, 30 Aug 2025 23:49:17 +0200 Subject: [PATCH] fix code style --- biome.json | 2 +- src/api/homeAssistant.ts | 6 +++--- src/components/Footer/Footer.tsx | 3 +-- vite.config.ts | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/biome.json b/biome.json index 2f74a65..b54f510 100644 --- a/biome.json +++ b/biome.json @@ -6,7 +6,7 @@ }, "files": { "ignoreUnknown": false, - "includes": ["**","!**/dist"] + "includes": ["**", "!**/dist"] }, "formatter": { "enabled": true, diff --git a/src/api/homeAssistant.ts b/src/api/homeAssistant.ts index 4b0d73a..25b0dc2 100644 --- a/src/api/homeAssistant.ts +++ b/src/api/homeAssistant.ts @@ -1,8 +1,8 @@ -const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3N2JmOTk1ODI3MzA0ZWIzOWYwNThjMzQ4YTY3ZDJkYyIsImlhdCI6MTc1NjQ3NTM4OSwiZXhwIjoyMDcxODM1Mzg5fQ.TZZ4SUGlERuIVrhzC_wfCN-qS1wSAKNN9uMMDjkqOgA"; +const token = + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3N2JmOTk1ODI3MzA0ZWIzOWYwNThjMzQ4YTY3ZDJkYyIsImlhdCI6MTc1NjQ3NTM4OSwiZXhwIjoyMDcxODM1Mzg5fQ.TZZ4SUGlERuIVrhzC_wfCN-qS1wSAKNN9uMMDjkqOgA"; async function fetchTentHumidity() { - const url = - `https://home.rivercry.com/api/states/sensor.third_reality_inc_3rths0224z_luftfeuchtigkeit_2`; + const url = `https://home.rivercry.com/api/states/sensor.third_reality_inc_3rths0224z_luftfeuchtigkeit_2`; const response = await fetch(url, { method: "GET", headers: { diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index fe91dfa..8730d90 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -1,6 +1,5 @@ -import style from "./style.module.css"; - import weedImage from "/img/weed.png"; +import style from "./style.module.css"; export default function Footer() { return ( diff --git a/vite.config.ts b/vite.config.ts index 034c199..695fe65 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,7 @@ import path from "node:path"; import react from "@vitejs/plugin-react-swc"; import { defineConfig } from "vite"; -import mkcert from 'vite-plugin-mkcert' +import mkcert from "vite-plugin-mkcert"; export default defineConfig({ plugins: [react(), mkcert()],