From 918c6bf83a7ec7a58aa999d962f2e9d45f23bdc2 Mon Sep 17 00:00:00 2001 From: Purp1e <438518244@qq.com> Date: Mon, 11 Nov 2024 10:10:47 +0800 Subject: [PATCH] [fix] lint error --- .eslintrc.json | 3 ++- package.json | 2 +- src/components/window/SideBar.tsx | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c60a10f..a249701 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" } } \ No newline at end of file diff --git a/package.json b/package.json index 543952b..a91bf5c 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/components/window/SideBar.tsx b/src/components/window/SideBar.tsx index 27a2ecc..1b721c4 100644 --- a/src/components/window/SideBar.tsx +++ b/src/components/window/SideBar.tsx @@ -32,7 +32,7 @@ const SideButton = ({ return (