aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-16 22:59:34 +0200
committerVendicated <vendicated@riseup.net>2022-09-16 22:59:34 +0200
commit71a60a0359eda13221f2314c0b1c33c86f240fd3 (patch)
treecbf6048c91034ac77ac61494cf0975fd0d229e0e /src/utils
parent5f62d2d3ec2cfbb39b0663e96b82746384ef1b89 (diff)
downloadVencord-71a60a0359eda13221f2314c0b1c33c86f240fd3.tar.gz
Vencord-71a60a0359eda13221f2314c0b1c33c86f240fd3.tar.bz2
Vencord-71a60a0359eda13221f2314c0b1c33c86f240fd3.zip
Add .editorconfig; reformat project
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/IpcEvents.ts2
-rw-r--r--src/utils/constants.ts2
-rw-r--r--src/utils/debounce.ts2
-rw-r--r--src/utils/logger.ts2
-rw-r--r--src/utils/misc.tsx2
-rw-r--r--src/utils/modal.tsx2
-rw-r--r--src/utils/types.ts2
7 files changed, 7 insertions, 7 deletions
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<T extends Function>(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<T = any>(factory: () => React.ComponentType<T>) {
}
/**
- * 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<str
*/
export function closeModal(key: string) {
modals.closeModal(key);
-} \ No newline at end of file
+}
diff --git a/src/utils/types.ts b/src/utils/types.ts
index 810869c..f7936a4 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -28,4 +28,4 @@ interface PluginDef {
patches?: Omit<Patch, "plugin">[];
dependencies?: string[],
required?: boolean;
-} \ No newline at end of file
+}