From 9716be6426ddeda6157a1e8d4eecaaf2b66cf52f Mon Sep 17 00:00:00 2001 From: jinmingyang <2214962083@qq.com> Date: Mon, 19 Jan 2026 23:57:37 +0800 Subject: [PATCH] chore: remove MDX file linting configuration from ESLint settings and add eslint-disable comment in SidebarMenuSkeleton for clarity --- website/eslint.config.mjs | 11 ----------- website/src/components/ui/sidebar.tsx | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/website/eslint.config.mjs b/website/eslint.config.mjs index 1d7d0e5..4d65289 100644 --- a/website/eslint.config.mjs +++ b/website/eslint.config.mjs @@ -144,17 +144,6 @@ export default defineConfig( }, }, - // MDX files - { - files: ["**/*.mdx"], - plugins: { - prettier: eslintPluginPrettier, - }, - rules: { - "prettier/prettier": "warn", - }, - }, - // Linter options { linterOptions: { diff --git a/website/src/components/ui/sidebar.tsx b/website/src/components/ui/sidebar.tsx index b5f8ca5..0e649c3 100644 --- a/website/src/components/ui/sidebar.tsx +++ b/website/src/components/ui/sidebar.tsx @@ -607,6 +607,7 @@ function SidebarMenuSkeleton({ }) { // Random width between 50 to 90%. const width = React.useMemo(() => { + // eslint-disable-next-line react-hooks/purity return `${Math.floor(Math.random() * 40) + 50}%`; }, []);