From 71a60a0359eda13221f2314c0b1c33c86f240fd3 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 16 Sep 2022 22:59:34 +0200 Subject: Add .editorconfig; reformat project --- src/utils/IpcEvents.ts | 2 +- src/utils/constants.ts | 2 +- src/utils/debounce.ts | 2 +- src/utils/logger.ts | 2 +- src/utils/misc.tsx | 2 +- src/utils/modal.tsx | 2 +- src/utils/types.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/utils') diff --git a/src/utils/IpcEvents.ts b/src/utils/IpcEvents.ts index 70ba502..6061fcb 100644 --- a/src/utils/IpcEvents.ts +++ b/src/utils/IpcEvents.ts @@ -19,4 +19,4 @@ export default strEnum({ SET_SETTINGS: "VencordSetSettings", OPEN_EXTERNAL: "VencordOpenExternal", OPEN_PATH: "VencordOpenPath", -} as const); \ No newline at end of file +} as const); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 92f78f5..3d60e29 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,2 +1,2 @@ export const WEBPACK_CHUNK = "webpackChunkdiscord_app"; -export const REACT_GLOBAL = "Vencord.Webpack.Common.React"; \ No newline at end of file +export const REACT_GLOBAL = "Vencord.Webpack.Common.React"; diff --git a/src/utils/debounce.ts b/src/utils/debounce.ts index 6a1756b..f001b7b 100644 --- a/src/utils/debounce.ts +++ b/src/utils/debounce.ts @@ -4,4 +4,4 @@ export function debounce(func: T, delay = 300): T { clearTimeout(timeout); timeout = setTimeout(() => { func(...args); }, delay); } as any; -} \ No newline at end of file +} diff --git a/src/utils/logger.ts b/src/utils/logger.ts index be32f2b..0dda4bb 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -30,4 +30,4 @@ export default class Logger { public debug(...args: any[]) { this._log("debug", "#eebebe", args); } -} \ No newline at end of file +} diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 9d4c001..8a9afe1 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -53,7 +53,7 @@ export function LazyComponent(factory: () => React.ComponentType) { } /** - * Recursively merges defaults into an object and returns the same object + * Recursively merges defaults into an object and returns the same object * @param obj Object * @param defaults Defaults * @returns obj diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx index 63821f3..e5723a8 100644 --- a/src/utils/modal.tsx +++ b/src/utils/modal.tsx @@ -31,4 +31,4 @@ export function openModal(Component: React.ComponentType, modalProps: Record[]; dependencies?: string[], required?: boolean; -} \ No newline at end of file +} -- cgit