From 18c2d3bbab5d30a92dad6eefafdaab17531f2dee Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Wed, 14 Sep 2022 14:06:52 +0300 Subject: [PATCH] Make lint happy --- app/constants.ts | 2 +- app/modules/analyzer/stats.ts | 4 ++-- app/modules/analyzer/useAnalyzeBuild.ts | 2 +- scripts/create-analyzer-json.ts | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/constants.ts b/app/constants.ts index 624b4b7a2..442b909e7 100644 --- a/app/constants.ts +++ b/app/constants.ts @@ -1,6 +1,6 @@ import allTags from "~/routes/calendar/tags.json"; import type { CalendarEventTag } from "./db/types"; -import { BuildAbilitiesTupleWithUnknown } from "./modules/in-game-lists"; +import type { BuildAbilitiesTupleWithUnknown } from "./modules/in-game-lists"; export const TWEET_LENGTH_MAX_LENGTH = 280; export const DISCORD_MESSAGE_MAX_LENGTH = 2000; diff --git a/app/modules/analyzer/stats.ts b/app/modules/analyzer/stats.ts index 851777e56..8f5e0834e 100644 --- a/app/modules/analyzer/stats.ts +++ b/app/modules/analyzer/stats.ts @@ -2,13 +2,13 @@ import type { BuildAbilitiesTupleWithUnknown, MainWeaponId, } from "~/modules/in-game-lists"; -import { +import type { AnalyzedBuild, InkConsumeType, - INK_CONSUME_TYPES, MainWeaponParams, StatFunctionInput, } from "./types"; +import { INK_CONSUME_TYPES } from "./types"; import invariant from "tiny-invariant"; import { abilityPointsToEffects, diff --git a/app/modules/analyzer/useAnalyzeBuild.ts b/app/modules/analyzer/useAnalyzeBuild.ts index f7df8fc21..00c75e283 100644 --- a/app/modules/analyzer/useAnalyzeBuild.ts +++ b/app/modules/analyzer/useAnalyzeBuild.ts @@ -7,7 +7,7 @@ import { mainWeaponIds, abilities, } from "../in-game-lists"; -import { AbilityType, AbilityWithUnknown } from "../in-game-lists/types"; +import type { AbilityType, AbilityWithUnknown } from "../in-game-lists/types"; import { buildStats } from "./stats"; const UNKNOWN_SHORT = "U"; diff --git a/scripts/create-analyzer-json.ts b/scripts/create-analyzer-json.ts index 90ff95d83..223decf8e 100644 --- a/scripts/create-analyzer-json.ts +++ b/scripts/create-analyzer-json.ts @@ -365,6 +365,7 @@ function writeTranslationsJsons(arr: TranslationArray) { } function logWeaponIds(weapons: Record) { + // eslint-disable-next-line no-console console.log(JSON.stringify(Object.keys(weapons).map(Number))); }