From 3a2e6a6fd4bfa09b68c38153a34c3b0f0d351f4f Mon Sep 17 00:00:00 2001 From: Nickyux Date: Mon, 21 Nov 2022 17:01:34 +0100 Subject: Autofix lint --- src/components/PluginSettings/components/index.ts | 2 +- src/components/PluginSettings/index.tsx | 9 ++++----- 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 { 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) => { const dateNow: number = Date.now() / 1000; - let Vencord_existingPlugins: Record = {}; - let newPlugins: Array = []; + const Vencord_existingPlugins: Record = {}; + const newPlugins: Array = []; 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); } -- cgit