chore: remove MDX file linting configuration from ESLint settings and add eslint-disable comment in SidebarMenuSkeleton for clarity

This commit is contained in:
jinmingyang
2026-01-19 23:57:37 +08:00
parent a1408f6d3d
commit 9716be6426
2 changed files with 1 additions and 11 deletions
-11
View File
@@ -144,17 +144,6 @@ export default defineConfig(
},
},
// MDX files
{
files: ["**/*.mdx"],
plugins: {
prettier: eslintPluginPrettier,
},
rules: {
"prettier/prettier": "warn",
},
},
// Linter options
{
linterOptions: {
+1
View File
@@ -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}%`;
}, []);