supermemory/biome.json
MaheshtheDev 5b7f9ceb44 feat: migrate from react-markdown to streamdown (#394)
| Before (react-markdown) | After (streamdown) |
| --- | --- |
| <img width="300" height="863" alt="Before: react-markdown rendering" src="https://github.com/user-attachments/assets/807d0d3c-8634-45f3-a34f-79dd8139bef2" /> | <img width="300" height="814" alt="After: streamdown rendering" src="https://github.com/user-attachments/assets/8a718a9c-d842-424b-8679-15036076b142" /> |

## Changes Made

- **Dependencies**: Removed `react-markdown` and `remark-gfm`, added `streamdown@^1.1.6`
- **Component Updates**:
    - Updated chat message rendering to use `<Streamdown>` component
    - Maintained all existing functionality for tool state rendering
    - Preserved prose styling classes for consistent appearance
- **Code Quality Improvements**:
    - Fixed TypeScript type issues with message parts
    - Improved switch case structure with proper default cases
    - Replaced array index-based keys with stable message-based keys
    - Added `useCallback` for performance optimization
    - Fixed biome linting issues and switch case fallthrough warnings
2025-08-29 19:45:47 +00:00

105 lines
1.9 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
"assist": {
"actions": {
"source": {
"organizeImports": "on",
"useSortedAttributes": "on",
"useSortedKeys": "off"
}
},
"enabled": true
},
"files": {
"includes": [
"**",
"!**/node_modules",
"!**/.next/",
"!**/.contentlayer",
"!**/.vercel",
"!**/.react-router",
"!**/.wrangler",
"!**/package.json",
"!**/worker-configuration.d.ts",
"!**/.turbo/",
"!**/.vercel",
"!**/dist",
"!**/.astro",
"!**/build",
"!**/.alchemy",
"!**/.build",
"!**/.open-next",
"!**/*.astro"
]
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always"
}
},
"linter": {
"domains": {
"project": "none"
},
"enabled": true,
"rules": {
"a11y": {
"useValidAnchor": "warn"
},
"correctness": {
"noUnusedVariables": {
"level": "warn",
"options": {
"ignoreRestSiblings": true
}
},
"useExhaustiveDependencies": "off",
"noUnusedImports": "warn"
},
"recommended": true,
"style": {
"noDefaultExport": "off",
"noInferrableTypes": "error",
"noNonNullAssertion": "warn",
"noParameterAssign": "error",
"noUnusedTemplateLiteral": "error",
"noUselessElse": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useNamingConvention": {
"level": "off",
"options": {
"strictCase": false
}
},
"useNumberNamespace": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error"
}
}
},
"overrides": [
{
"includes": ["**/*.astro"],
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
}
],
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
}
}