mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 14:22:28 +08:00
- Disable noisy biome rules (noExplicitAny, useExhaustiveDependencies, etc.) - Fix memory leak in file-preview-list.tsx with useRef pattern - Separate unmount cleanup into dedicated useEffect - Add ToolPartLike interface for type safety in chat-message-display - Add accessibility attributes (role, tabIndex, onKeyDown) - Replace autoFocus with useEffect focus pattern - Minor syntax improvements (optional chaining, key fixes)
84 lines
2.0 KiB
JSON
84 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": false
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 4
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"noImportantStyles": "off"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noArrayIndexKey": "off",
|
|
"noImplicitAnyLet": "off",
|
|
"noAssignInExpressions": "off"
|
|
},
|
|
"a11y": {
|
|
"useButtonType": "off",
|
|
"noAutofocus": "off",
|
|
"noStaticElementInteractions": "off",
|
|
"useKeyWithClickEvents": "off",
|
|
"noLabelWithoutControl": "off",
|
|
"noNoninteractiveTabindex": "off"
|
|
},
|
|
"correctness": {
|
|
"useExhaustiveDependencies": "off"
|
|
},
|
|
"style": {
|
|
"useNodejsImportProtocol": "off",
|
|
"useTemplate": "off"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "off"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"semicolons": "asNeeded"
|
|
}
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"cssModules": true,
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["components/ui/**"],
|
|
"formatter": {
|
|
"enabled": false
|
|
},
|
|
"linter": {
|
|
"enabled": false
|
|
},
|
|
"assist": {
|
|
"enabled": false
|
|
}
|
|
}
|
|
]
|
|
}
|