mirror of
https://github.com/nicepkg/ai-workflow.git
synced 2026-11-18 18:04:23 +00:00
chore: remove MDX file linting configuration from ESLint settings and add eslint-disable comment in SidebarMenuSkeleton for clarity
This commit is contained in:
@@ -144,17 +144,6 @@ export default defineConfig(
|
||||
},
|
||||
},
|
||||
|
||||
// MDX files
|
||||
{
|
||||
files: ["**/*.mdx"],
|
||||
plugins: {
|
||||
prettier: eslintPluginPrettier,
|
||||
},
|
||||
rules: {
|
||||
"prettier/prettier": "warn",
|
||||
},
|
||||
},
|
||||
|
||||
// Linter options
|
||||
{
|
||||
linterOptions: {
|
||||
|
||||
@@ -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}%`;
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user