fix(lint): resolve eslint errors and warnings

- audioService: replace 'as any' with 'as unknown as AudioService' in
  resetInstance() to satisfy @typescript-eslint/no-explicit-any
- SongPage: add isReady to spacebar useEffect deps so the handler always
  sees the current readiness state
- useWaveform: add containerRef to deps (stable ref, safe to include);
  suppress exhaustive-deps for options.onReady with explanation — adding
  an un-memoized callback would cause initialization on every render

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mistral Vibe
2026-04-08 21:52:44 +02:00
parent 3405325cbb
commit 48a73246a1
3 changed files with 8 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ class AudioService {
// For use in tests only
public static resetInstance(): void {
this.instance?.cleanup();
this.instance = undefined as any;
this.instance = undefined as unknown as AudioService;
}
private createMediaElement(): HTMLAudioElement {