From 87de02b31613e1346b2614588310d683f736c1cb Mon Sep 17 00:00:00 2001 From: zetaloop Date: Fri, 20 Feb 2026 17:45:53 +0800 Subject: [PATCH] chore: upgrade biome warn rules to error, deduplicate UserRole --- biome.json | 8 ++++---- store/auth.ts | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/biome.json b/biome.json index 582839e..d075eab 100644 --- a/biome.json +++ b/biome.json @@ -29,15 +29,15 @@ "rules": { "recommended": true, "correctness": { - "noUnusedImports": "warn", - "useExhaustiveDependencies": "warn" + "noUnusedImports": "error", + "useExhaustiveDependencies": "error" }, "style": { - "noNonNullAssertion": "warn", + "noNonNullAssertion": "error", "useImportType": "error" }, "suspicious": { - "noExplicitAny": "warn" + "noExplicitAny": "error" } } }, diff --git a/store/auth.ts b/store/auth.ts index 3765f08..7e2ae75 100644 --- a/store/auth.ts +++ b/store/auth.ts @@ -1,6 +1,5 @@ import { create } from "zustand" - -export type UserRole = "consumer" | "player" | "owner" +import type { UserRole } from "@/lib/types" interface AuthState { isAuthenticated: boolean