mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 09:57:08 -04:00
Add more eslint rules
This commit is contained in:
parent
0109381a4f
commit
dea34503ef
13 changed files with 33 additions and 21 deletions
|
@ -7,7 +7,7 @@ function strEnum<T extends Record<string, string>>(obj: T): T {
|
|||
for (const key in obj) {
|
||||
o[key] = obj[key] as any;
|
||||
o[obj[key]] = key as any;
|
||||
};
|
||||
}
|
||||
return Object.freeze(o);
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ export function useAwaiter<T>(factory: () => Promise<T>, fallbackValue: T | null
|
|||
}, []);
|
||||
|
||||
return [state.value, state.error, state.pending];
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* A lazy component. The factory method is called on first render. For example useful
|
||||
|
|
|
@ -25,7 +25,7 @@ export function openModal(Component: React.ComponentType, modalProps: Record<str
|
|||
), { modalKey: key });
|
||||
|
||||
return key;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Close a modal by key. The id you need for this is returned by openModal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue