chore: upgrade biome warn rules to error, deduplicate UserRole
This commit is contained in:
+4
-4
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user