[fix] lint error
This commit is contained in:
@@ -47,6 +47,7 @@
|
|||||||
"@typescript-eslint/no-unsafe-return": "off",
|
"@typescript-eslint/no-unsafe-return": "off",
|
||||||
"@typescript-eslint/no-unsafe-call": "off",
|
"@typescript-eslint/no-unsafe-call": "off",
|
||||||
"@typescript-eslint/prefer-nullish-coalescing": "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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"build": "tauri build",
|
"build": "tauri build",
|
||||||
"dev": "tauri dev",
|
"dev": "tauri dev",
|
||||||
"lint": "next lint && biome check src/",
|
"lint": "next lint && biome check src/",
|
||||||
"fix": "next lint --fix && biome check src/ --fix",
|
"fix": "next lint --fix && biome check src/ --write",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const SideButton = ({
|
|||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onKeyUp={() => router.push(route || "/")}
|
onClick={() => router.push(route || "/")}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
className,
|
className,
|
||||||
"p-2.5 hover:bg-black/5 rounded-lg transition relative",
|
"p-2.5 hover:bg-black/5 rounded-lg transition relative",
|
||||||
@@ -57,7 +57,7 @@ const Avatar = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
onKeyUp={() => router.push("/users")}
|
onClick={() => router.push("/users")}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
"w-12 h-12 bg-gray-700 rounded-full shadow-2xl cursor-pointer transition active:scale-95 shadow-purple-800",
|
"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",
|
path.startsWith("/users") && "shadow-sm",
|
||||||
@@ -112,7 +112,7 @@ const SideBar = () => {
|
|||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
>
|
>
|
||||||
<p>版本号</p>
|
<p>版本号</p>
|
||||||
<p onKeyUp={() => setVersion("x.y.z")}>{version}</p>
|
<p onClick={() => setVersion("x.y.z")}>{version}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user