From fc561d6d31ded4152b3f514284d0eb6591545706 Mon Sep 17 00:00:00 2001 From: jsun969 Date: Thu, 31 Oct 2024 16:05:34 +1030 Subject: [PATCH] chore: fix lint --- package.json | 2 +- src/utils/mount.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a421b55..ee723f0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "prepare": "simple-git-hooks", "dev": "vite", "build": "tsc -b && vite build", - "lint": "eslint .", + "lint": "eslint ./src", "preview": "vite preview", "format": "prettier --write \"**/*.{js,ts,tsx,css,md,cjs,mjs,json,html}\"", "format:check": "prettier --check \"**/*.{js,ts,tsx,css,md,cjs,mjs,json,html}\"", diff --git a/src/utils/mount.ts b/src/utils/mount.ts index 47dd0da..b819586 100644 --- a/src/utils/mount.ts +++ b/src/utils/mount.ts @@ -7,5 +7,6 @@ export const useMount = (fn: React.EffectCallback) => { fn(); isMounted.current = true; } + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); };