Fix linter errors

This commit is contained in:
Alex Gleason committed 2025-07-20 15:31:29 -05:00
1 parent 29ce881e63
commit ba4b8d040f
15 files changed
+93 -70

No files matched your search

+12 -3
View File
@@ -1,5 +1,14 @@
import { useFS as useInternalFS } from '@/contexts/FSContext';
import { useContext } from 'react';
import { FSContext, type FSContextType } from '@/contexts/FSContext';
export function useFS() {
return useInternalFS();
/**
* Hook to access the filesystem
* @returns Filesystem context with fs instance
*/
export function useFS(): FSContextType {
const context = useContext(FSContext);
if (context === undefined) {
throw new Error('useFS must be used within a FSProvider');
}
return context;
}