From 13893da3d676b803952ea2bcd9f54abc25437106 Mon Sep 17 00:00:00 2001 From: Justin Sun Date: Thu, 31 Oct 2024 16:06:22 +1030 Subject: [PATCH] chore: fix lint and format check for workflow (#23) * chore: fix lint and format check for workflow * chore: fix lint --- package.json | 4 ++-- src/utils/mount.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6d99ff1..ee723f0 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "prepare": "simple-git-hooks", "dev": "vite", "build": "tsc -b && vite build", - "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "lint": "eslint ./src", "preview": "vite preview", "format": "prettier --write \"**/*.{js,ts,tsx,css,md,cjs,mjs,json,html}\"", - "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,css,json,mjs,cjs,yml,yaml}\"", + "format:check": "prettier --check \"**/*.{js,ts,tsx,css,md,cjs,mjs,json,html}\"", "test": "vitest" }, "dependencies": { 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 }, []); };