[ESLint] Prefer named exports (#427)
This commit is contained in:
@@ -34,13 +34,11 @@ export const DefaultLibraryOptions: LibraryOptions = {
|
||||
showTabSize: false,
|
||||
};
|
||||
|
||||
const LibraryOptionsContext = React.createContext<ContextType>({
|
||||
export const LibraryOptionsContext = React.createContext<ContextType>({
|
||||
options: DefaultLibraryOptions,
|
||||
setOptions: () => {},
|
||||
});
|
||||
|
||||
export default LibraryOptionsContext;
|
||||
|
||||
export function useLibraryOptionsContext() {
|
||||
return useContext(LibraryOptionsContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user