Clear lint fallout from the SDK-hook migration
Nine errors survived the large-scale migration: unnecessary type
assertions in FileView, EditorView, and auth.ts (autofix cleared);
a mutable-array declaration in fileContext.ts's snapshotToFileItems
(switched to readonly — the sort operates on a copy anyway); and
two set-state-in-effect warnings that are load-bearing:
- FileView's two-phase directory resolution has to run in an effect.
The snapshot from useDirectory is both the input to and the
derivation source for targetDirectoryUri, and there's no useMemo
shape that expresses that dependency cycle. Inline-suppress with
a pointer to the explanation comment.
- EditorView's loaded→displayName sync is exactly the "external async
source" case the rule documents as allowed, but the linter can't
see through useDocumentContent's boundary. Same treatment.