Add .editorconfig; reformat project

This commit is contained in:
Vendicated 2022-09-16 22:59:34 +02:00
parent 5f62d2d3ec
commit 71a60a0359
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
29 changed files with 42 additions and 28 deletions

View file

@ -19,4 +19,4 @@ export default strEnum({
SET_SETTINGS: "VencordSetSettings",
OPEN_EXTERNAL: "VencordOpenExternal",
OPEN_PATH: "VencordOpenPath",
} as const);
} as const);

View file

@ -1,2 +1,2 @@
export const WEBPACK_CHUNK = "webpackChunkdiscord_app";
export const REACT_GLOBAL = "Vencord.Webpack.Common.React";
export const REACT_GLOBAL = "Vencord.Webpack.Common.React";

View file

@ -4,4 +4,4 @@ export function debounce<T extends Function>(func: T, delay = 300): T {
clearTimeout(timeout);
timeout = setTimeout(() => { func(...args); }, delay);
} as any;
}
}

View file

@ -30,4 +30,4 @@ export default class Logger {
public debug(...args: any[]) {
this._log("debug", "#eebebe", args);
}
}
}

View file

@ -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

View file

@ -31,4 +31,4 @@ export function openModal(Component: React.ComponentType, modalProps: Record<str
*/
export function closeModal(key: string) {
modals.closeModal(key);
}
}

View file

@ -28,4 +28,4 @@ interface PluginDef {
patches?: Omit<Patch, "plugin">[];
dependencies?: string[],
required?: boolean;
}
}