[fix] lint error

This commit is contained in:
Purp1e
2024-11-11 10:10:47 +08:00
parent b1d505fd6b
commit 918c6bf83a
3 changed files with 6 additions and 5 deletions

View File

@@ -47,6 +47,7 @@
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unsafe-member-access": "warn"
"@typescript-eslint/no-unsafe-member-access": "warn",
"jsx-a11y/click-events-have-key-events": "off"
}
}

View File

@@ -13,7 +13,7 @@
"build": "tauri build",
"dev": "tauri dev",
"lint": "next lint && biome check src/",
"fix": "next lint --fix && biome check src/ --fix",
"fix": "next lint --fix && biome check src/ --write",
"prepare": "husky"
},
"dependencies": {

View File

@@ -32,7 +32,7 @@ const SideButton = ({
return (
<button
type="button"
onKeyUp={() => router.push(route || "/")}
onClick={() => router.push(route || "/")}
className={clsx(
className,
"p-2.5 hover:bg-black/5 rounded-lg transition relative",
@@ -57,7 +57,7 @@ const Avatar = () => {
return (
<div
onKeyUp={() => router.push("/users")}
onClick={() => router.push("/users")}
className={clsx(
"w-12 h-12 bg-gray-700 rounded-full shadow-2xl cursor-pointer transition active:scale-95 shadow-purple-800",
path.startsWith("/users") && "shadow-sm",
@@ -112,7 +112,7 @@ const SideBar = () => {
data-tauri-drag-region
>
<p></p>
<p onKeyUp={() => setVersion("x.y.z")}>{version}</p>
<p onClick={() => setVersion("x.y.z")}>{version}</p>
</div>
</div>
)