chore: upgrade biome warn rules to error, deduplicate UserRole
This commit is contained in:
+4
-4
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
import { create } from "zustand"
|
||||
|
||||
export type UserRole = "consumer" | "player" | "owner"
|
||||
import type { UserRole } from "@/lib/types"
|
||||
|
||||
interface AuthState {
|
||||
isAuthenticated: boolean
|
||||
|
||||
Reference in New Issue
Block a user