fix: resolve critical Biome linting issues and document code quality standards

- Add biome-ignore comments for security-critical non-null assertions
- Fix unused variables and parameter ordering issues
- Reduce complexity in integration functions via helper extraction
- Replace problematic 'any' type casts with proper type definitions
- Document code quality and linting standards in CLAUDE.md

Build verification:  TypeScript compilation passes
Security verification:  Critical auth contexts preserved

Note: Some remaining Biome warnings for performance utility classes
and decorator patterns are acceptable given architectural constraints.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-13 17:30:44 +02:00
parent b946bdc803
commit 42ad5b7c80
10 changed files with 133 additions and 95 deletions

View File

@ -37,10 +37,28 @@ function usePlatformSession() {
const abortController = new AbortController();
const handleAuthSuccess = (sessionData: {
user?: { isPlatformUser?: boolean };
user?: {
id?: string;
email?: string;
name?: string;
role?: string;
companyId?: string;
isPlatformUser?: boolean;
platformRole?: string;
};
}) => {
if (sessionData?.user?.isPlatformUser) {
setSession(sessionData as any);
setSession({
user: {
id: sessionData.user.id || '',
email: sessionData.user.email || '',
name: sessionData.user.name,
role: sessionData.user.role || '',
companyId: sessionData.user.companyId,
isPlatformUser: sessionData.user.isPlatformUser,
platformRole: sessionData.user.platformRole,
}
});
setStatus("authenticated");
} else {
handleAuthFailure();