chore: upgrade biome warn rules to error, deduplicate UserRole

This commit is contained in:
zetaloop
2026-02-20 17:45:53 +08:00
parent 8c690f97a4
commit 87de02b316
2 changed files with 5 additions and 6 deletions
+4 -4
View File
@@ -29,15 +29,15 @@
"rules": { "rules": {
"recommended": true, "recommended": true,
"correctness": { "correctness": {
"noUnusedImports": "warn", "noUnusedImports": "error",
"useExhaustiveDependencies": "warn" "useExhaustiveDependencies": "error"
}, },
"style": { "style": {
"noNonNullAssertion": "warn", "noNonNullAssertion": "error",
"useImportType": "error" "useImportType": "error"
}, },
"suspicious": { "suspicious": {
"noExplicitAny": "warn" "noExplicitAny": "error"
} }
} }
}, },
+1 -2
View File
@@ -1,6 +1,5 @@
import { create } from "zustand" import { create } from "zustand"
import type { UserRole } from "@/lib/types"
export type UserRole = "consumer" | "player" | "owner"
interface AuthState { interface AuthState {
isAuthenticated: boolean isAuthenticated: boolean