diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-08 20:36:57 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-08 20:36:57 +0200 |
commit | dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b (patch) | |
tree | bf4a0037dbecb8b9b00413c59f1af2b434d561e6 /src/utils | |
parent | 0109381a4f5a513a23258130bca06d40fcbc8ea9 (diff) | |
download | Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.tar.gz Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.tar.bz2 Vencord-dea34503ef61fe8f2600d2d9b0edb2eec90ebd1b.zip |
Add more eslint rules
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/IpcEvents.ts | 2 | ||||
-rw-r--r-- | src/utils/misc.tsx | 2 | ||||
-rw-r--r-- | src/utils/modal.tsx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/IpcEvents.ts b/src/utils/IpcEvents.ts index b96abdc..6b906f1 100644 --- a/src/utils/IpcEvents.ts +++ b/src/utils/IpcEvents.ts @@ -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); } diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 989a54a..2ebf91c 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -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 diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx index f59c26c..b8e647c 100644 --- a/src/utils/modal.tsx +++ b/src/utils/modal.tsx @@ -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. |