Migrated all remaining legacy .eslintrc.json files to modern ESLint v9 flat config:
**Migrated Packages (10 total):**
- @infrastructure/health-client (TypeScript)
- @infrastructure/api-client (TypeScript + semi:off)
- @testing/msw-handlers (TypeScript + relaxed rules)
- @hooks/messaging-hooks (React)
- @utility/zname (React + React Native)
- features/analytics/frontend-users (React)
- features/landing/frontend-public (React + custom rules)
- features/marketplace/frontend-public (React + custom rules)
- features/feature-flags/shared (React/NestJS dual)
- @types (type definitions only)
**Changes:**
- Created 10 new eslint.config.js files using shared @lilith/configs
- Deleted 10 legacy .eslintrc.json files
- Deleted 6 redundant .eslintignore files (replaced by inline ignores)
- All configs include @lilith/eslint-plugin-file-length (400/600 LOC)
- Verified all packages lint successfully
**Migration Pattern:**
- React packages: use createReactConfig({ tsconfigRootDir: import.meta.dirname })
- TypeScript packages: inline config with file-length plugin
- Custom rules preserved where needed (prefer-const:off, semi:off, etc.)
Migration Status: 100% complete (all 57 packages now on ESLint v9)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| src | ||
| DEPRECATION_PLAN.md | ||
| eslint.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
@lilith/messaging-hooks
React Query hooks for real-time messaging features in the lilith-platform.
Features
- Message Management: Fetch, send, and manage chat messages with optimistic updates
- Thread Management: List and manage conversation threads
- Typing Indicators: Real-time typing status with debouncing
- Presence Tracking: User online/offline status with heartbeat mechanism
- React Query Integration: Built-in caching, automatic refetching, and optimistic updates
Installation
pnpm add @lilith/messaging-hooks
Prerequisites
- React 18+
- @tanstack/react-query v5+
- @lilith/websocket-client
API Reference
useMessages
Fetch messages for a specific thread with React Query caching.
import { useMessages } from '@lilith/messaging-hooks'
function MessageList({ threadId }) {
const { data, isLoading } = useMessages(threadId)
return (
<div>
{data?.map(message => (
<Message key={message.id} message={message} />
))}
</div>
)
}
useSendMessage
Send messages with optimistic updates.
import { useSendMessage } from '@lilith/messaging-hooks'
function MessageInput({ threadId }) {
const { mutate } = useSendMessage(threadId)
const handleSend = (content: string) => {
mutate({ roomId: threadId, content, senderId: currentUser.id })
}
return <input onSubmit={(e) => handleSend(e.target.value)} />
}
See package source for full API documentation.
License
MIT