mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
Add .editorconfig; reformat project
This commit is contained in:
parent
5f62d2d3ec
commit
71a60a0359
29 changed files with 42 additions and 28 deletions
|
@ -19,4 +19,4 @@ export default strEnum({
|
|||
SET_SETTINGS: "VencordSetSettings",
|
||||
OPEN_EXTERNAL: "VencordOpenExternal",
|
||||
OPEN_PATH: "VencordOpenPath",
|
||||
} as const);
|
||||
} as const);
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -4,4 +4,4 @@ export function debounce<T extends Function>(func: T, delay = 300): T {
|
|||
clearTimeout(timeout);
|
||||
timeout = setTimeout(() => { func(...args); }, delay);
|
||||
} as any;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@ export default class Logger {
|
|||
public debug(...args: any[]) {
|
||||
this._log("debug", "#eebebe", args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -31,4 +31,4 @@ export function openModal(Component: React.ComponentType, modalProps: Record<str
|
|||
*/
|
||||
export function closeModal(key: string) {
|
||||
modals.closeModal(key);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,4 +28,4 @@ interface PluginDef {
|
|||
patches?: Omit<Patch, "plugin">[];
|
||||
dependencies?: string[],
|
||||
required?: boolean;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue