aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorNickyux <nmsturcke@gmail.com>2022-11-21 17:01:34 +0100
committerNickyux <nmsturcke@gmail.com>2022-11-21 17:01:34 +0100
commit3a2e6a6fd4bfa09b68c38153a34c3b0f0d351f4f (patch)
tree00eb5bf13650c665ed2a90e8c988daabf42f4b08 /src/components
parent79e77419e7568dd8ac960b7d65c2cd9c7dde546d (diff)
downloadVencord-3a2e6a6fd4bfa09b68c38153a34c3b0f0d351f4f.tar.gz
Vencord-3a2e6a6fd4bfa09b68c38153a34c3b0f0d351f4f.tar.bz2
Vencord-3a2e6a6fd4bfa09b68c38153a34c3b0f0d351f4f.zip
Autofix lint
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PluginSettings/components/index.ts2
-rw-r--r--src/components/PluginSettings/index.tsx9
2 files changed, 5 insertions, 6 deletions
diff --git a/src/components/PluginSettings/components/index.ts b/src/components/PluginSettings/components/index.ts
index 6da30c9..deac079 100644
--- a/src/components/PluginSettings/components/index.ts
+++ b/src/components/PluginSettings/components/index.ts
@@ -29,10 +29,10 @@ export interface ISettingElementProps<T extends PluginOptionBase> {
onError(hasError: boolean): void;
}
+export * from "./NewBadgeComponent";
export * from "./SettingBooleanComponent";
export * from "./SettingCustomComponent";
export * from "./SettingNumericComponent";
export * from "./SettingSelectComponent";
export * from "./SettingSliderComponent";
export * from "./SettingTextComponent";
-export * from "./NewBadgeComponent";
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 4019bcc..6d3a752 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -17,12 +17,11 @@
*/
import Plugins from "~plugins";
-import { DataStore } from "../../api";
+import { DataStore } from "../../api";
import { showNotice } from "../../api/Notices";
import { Settings, useSettings } from "../../api/settings";
import { startDependenciesRecursive, startPlugin, stopPlugin } from "../../plugins";
-import consoleShortcuts from "../../plugins/consoleShortcuts";
import { ChangeList } from "../../utils/ChangeList";
import Logger from "../../utils/Logger";
import { classes, LazyComponent, lazyWebpack, useAwaiter } from "../../utils/misc";
@@ -249,10 +248,10 @@ export default ErrorBoundary.wrap(function Settings() {
const [newPlugins, error, newPluginsLoading] = useAwaiter(() => DataStore.get("Vencord_existingPlugins").then((existingPlugins: Record<string, number>) => {
const dateNow: number = Date.now() / 1000;
- let Vencord_existingPlugins: Record<string, number> = {};
- let newPlugins: Array<string> = [];
+ const Vencord_existingPlugins: Record<string, number> = {};
+ const newPlugins: Array<string> = [];
sortedPlugins.forEach(plugin => {
- Vencord_existingPlugins[plugin.name] = Object.keys(existingPlugins ? existingPlugins : []).includes(plugin.name) ? existingPlugins[plugin.name] : dateNow;
+ Vencord_existingPlugins[plugin.name] = Object.keys(existingPlugins || []).includes(plugin.name) ? existingPlugins[plugin.name] : dateNow;
if ((Vencord_existingPlugins[plugin.name] + 172800) > dateNow) {
newPlugins.push(plugin.name);
}