From 3a696030314fb7e2d8df0e4ee7668b62757df0dc Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Wed, 11 Dec 2024 15:12:27 -0600 Subject: [PATCH] Lint --- src/data/layers/prestige.tsx | 10 ++-------- src/features/clickables/clickable.tsx | 8 ++++++-- src/util/vue.tsx | 8 ++------ 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx index b9a01d3..f136c19 100644 --- a/src/data/layers/prestige.tsx +++ b/src/data/layers/prestige.tsx @@ -5,20 +5,14 @@ import { main } from "data/projEntry"; import { createCumulativeConversion } from "features/conversion"; import { createHotkey } from "features/hotkey"; -import { bonusAmountMixin } from "mixins/bonusDecorator"; -import { createRepeatable } from "features/clickables/repeatable"; import { createReset } from "features/reset"; import MainDisplay from "features/resources/MainDisplay.vue"; import { createResource } from "features/resources/resource"; -import { addTooltip } from "wrappers/tooltips/tooltip"; import { createResourceTooltip } from "features/trees/tree"; -import { createUpgrade } from "features/clickables/upgrade"; import { BaseLayer, createLayer } from "game/layers"; -import { noPersist, persistent } from "game/persistence"; -import { createCostRequirement } from "game/requirements"; import type { DecimalSource } from "util/bignum"; -import { render, renderCol, renderRow } from "util/vue"; -import { computed } from "vue"; +import { render } from "util/vue"; +import { addTooltip } from "wrappers/tooltips/tooltip"; import { createLayerTreeNode, createResetButton } from "../common"; const id = "p"; diff --git a/src/features/clickables/clickable.tsx b/src/features/clickables/clickable.tsx index 98dab9a..309a3b4 100644 --- a/src/features/clickables/clickable.tsx +++ b/src/features/clickables/clickable.tsx @@ -67,10 +67,14 @@ export function createClickable(optionsFunc?: () => {_display.title != null ? (
- {render(_display.title, el =>

{el}

)} + {render(_display.title, el => ( +

{el}

+ ))}
) : null} - {render(_display.description, el =>
{el}
)} + {render(_display.description, el => ( +
{el}
+ ))}
); } else if (_display != null) { diff --git a/src/util/vue.tsx b/src/util/vue.tsx index 2ced50e..ecc99bf 100644 --- a/src/util/vue.tsx +++ b/src/util/vue.tsx @@ -89,15 +89,11 @@ export function render( return wrapper?.(object) ?? object; } -export function renderRow( - ...objects: (VueFeature | MaybeGetter)[] -): JSX.Element { +export function renderRow(...objects: (VueFeature | MaybeGetter)[]): JSX.Element { return {objects.map(obj => render(obj))}; } -export function renderCol( - ...objects: (VueFeature | MaybeGetter)[] -): JSX.Element { +export function renderCol(...objects: (VueFeature | MaybeGetter)[]): JSX.Element { return {objects.map(obj => render(obj))}; }