mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 17:28:31 +03:00
fix: run just autofix (1)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { Command } from "commander";
|
||||
import fjsh from "fast-json-stable-hash";
|
||||
import fs from "fs";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type Difficulties,
|
||||
type integer,
|
||||
type SongDocument,
|
||||
} from "../../../common/src";
|
||||
|
||||
import {
|
||||
CreateChartID,
|
||||
GetFreshSongIDGenerator,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const { LoadBMSTable } = require("bms-table-loader");
|
||||
import { type BMSTableInfo, type FolderDocument, type TableDocument } from "../../../common/src";
|
||||
const { BMS_TABLES } = require("tachi-common");
|
||||
|
||||
import { type BMSTableInfo, type FolderDocument, type TableDocument } from "../../../common/src";
|
||||
const logger = require("../../logger");
|
||||
import { CreateFolderIDFromFolder } from "../../util";
|
||||
const { ReadCollection, MutateCollection } = require("../../util");
|
||||
|
||||
@@ -3,6 +3,7 @@ import { XMLParser } from "fast-xml-parser";
|
||||
import { existsSync, readdirSync, readFileSync, statSync } from "fs";
|
||||
import { CreateLogger } from "mei-logger";
|
||||
import path from "path";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type Difficulties,
|
||||
@@ -10,7 +11,6 @@ import {
|
||||
type integer,
|
||||
type SongDocument,
|
||||
} from "../../../common/src";
|
||||
|
||||
import { CreateChartID, ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
const logger = CreateLogger("chunithm/merge-options");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fetch from "node-fetch";
|
||||
import { type ChartDocument, type Difficulties, type SongDocument } from "../../../common/src";
|
||||
|
||||
import { type ChartDocument, type Difficulties, type SongDocument } from "../../../common/src";
|
||||
import { CreateChartID, MutateCollection, ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
const CURRENT_VERSION = "luminous";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Parser } from "binary-parser";
|
||||
import fs from "fs";
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
import { ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
const STEP_HEADER_LENGTH = 6;
|
||||
|
||||
@@ -8,7 +8,6 @@ import {
|
||||
type Versions,
|
||||
} from "../../../common/src";
|
||||
import { DDR_FLARE_CATEGORIES } from "../../../common/src/config/game-support/ddr";
|
||||
|
||||
import { CreateChartID, MutateCollection, ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
const gameConfig = GetGameGroupConfig("ddr") as GameConfig<"ddr">;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Command } from "commander";
|
||||
import { XMLParser } from "fast-xml-parser";
|
||||
import { readFileSync } from "fs";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type Difficulties,
|
||||
@@ -9,7 +10,6 @@ import {
|
||||
type Versions,
|
||||
} from "../../../common/src";
|
||||
import { GITADORA_GITA_CONF } from "../../../common/src/config/game-support/gitadora";
|
||||
|
||||
import { CreateChartID, MutateCollection, ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
const supportedVersions = Object.keys(GITADORA_GITA_CONF.versions);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { readdirSync, readFileSync } from "fs";
|
||||
import { join } from "path";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type Difficulties,
|
||||
@@ -8,7 +9,6 @@ import {
|
||||
type Playtypes,
|
||||
type SongDocument,
|
||||
} from "../../../../common/src";
|
||||
|
||||
import { CreateChartID, GetFreshScoreIDGenerator, MutateCollection } from "../../util";
|
||||
|
||||
interface AixChart {
|
||||
|
||||
@@ -3,8 +3,8 @@ import { execSync } from "child_process";
|
||||
import fs, { mkdirSync } from "fs";
|
||||
import iconv from "iconv-lite";
|
||||
import path from "path";
|
||||
import { type integer } from "../../../../common/src";
|
||||
|
||||
import { type integer } from "../../../../common/src";
|
||||
import logger from "../../../logger";
|
||||
import { ParseDotOneFile } from "./dot-one-parser/parser";
|
||||
import { type IIDXConvertOutput } from "./dot-one-parser/types";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import fs from "fs/promises";
|
||||
import path from "path";
|
||||
import { type integer } from "../../../../../common/src";
|
||||
|
||||
import { type integer } from "../../../../../common/src";
|
||||
import logger from "../../../../logger";
|
||||
import {
|
||||
type BGMObject,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Command } from "commander";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type Difficulties,
|
||||
@@ -9,7 +10,6 @@ import {
|
||||
type SongDocument,
|
||||
type Versions,
|
||||
} from "../../../../common/src";
|
||||
|
||||
import logger from "../../../logger";
|
||||
import {
|
||||
CreateChartID,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Command } from "commander";
|
||||
import fs from "fs";
|
||||
import { type GoalDocument, type QuestDocument } from "../../common/src";
|
||||
|
||||
import { type GoalDocument, type QuestDocument } from "../../common/src";
|
||||
import { CreateGoalID, CreateQuestID, MutateCollection } from "../util";
|
||||
|
||||
const program = new Command();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { JUBEAT_SINGLE_CONF } from "../../../common/src/config/game-support/jubeat";
|
||||
import { type FolderDocument } from "tachi-common/src/types";
|
||||
|
||||
import { JUBEAT_SINGLE_CONF } from "../../../common/src/config/game-support/jubeat";
|
||||
const { MutateCollection, CreateFolderID } = require("../../util");
|
||||
|
||||
function CreateFolder(criteria, title) {
|
||||
|
||||
@@ -11,8 +11,8 @@ import { XMLParser } from "fast-xml-parser";
|
||||
*/
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
import { MutateCollection, ReadCollection } from "../../util";
|
||||
|
||||
interface XmlNotes {
|
||||
|
||||
@@ -4,13 +4,13 @@ import { XMLParser } from "fast-xml-parser";
|
||||
import { existsSync, readdirSync, readFileSync, statSync } from "fs";
|
||||
import { CreateLogger } from "mei-logger";
|
||||
import path from "path";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type Difficulties,
|
||||
GetGamePTConfig,
|
||||
type SongDocument,
|
||||
} from "../../../common/src";
|
||||
|
||||
import {
|
||||
CreateChartID,
|
||||
GetFreshSongIDGenerator,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { spawnSync } from "child_process";
|
||||
import { Command } from "commander";
|
||||
import fs from "fs";
|
||||
import { type QuestDocument, type QuestlineDocument } from "../../common/src";
|
||||
|
||||
import { type QuestDocument, type QuestlineDocument } from "../../common/src";
|
||||
import { MutateCollection, ReadCollection } from "../util";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Command } from "commander";
|
||||
import { type FolderDocument, GetGamePTConfig } from "../../../common/src";
|
||||
|
||||
import { type FolderDocument, GetGamePTConfig } from "../../../common/src";
|
||||
import { CreateFolderID, MutateCollection } from "../../util";
|
||||
|
||||
const LEVELS = [
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// usage: cd rerunners && npx ts-node ongeki/parse-music-data.ts
|
||||
|
||||
import fs from "fs/promises";
|
||||
import { type ChartDocument, type Difficulties, type SongDocument } from "../../../common/src";
|
||||
|
||||
import { type ChartDocument, type Difficulties, type SongDocument } from "../../../common/src";
|
||||
import { CreateChartID, ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
type OngekiChart = ChartDocument<"ongeki:Single">;
|
||||
|
||||
@@ -6,8 +6,8 @@ import { execFile } from "node:child_process";
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { promisify } from "node:util";
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
import { ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* eslint-disable no-await-in-loop */
|
||||
|
||||
import readline from "readline";
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
|
||||
import { type ChartDocument, type SongDocument } from "../../../common/src";
|
||||
import { ReadCollection, WriteCollection } from "../../util";
|
||||
|
||||
type OngekiChart = ChartDocument<"ongeki:Single">;
|
||||
|
||||
@@ -2,13 +2,13 @@ import { Command } from "commander";
|
||||
import { XMLParser } from "fast-xml-parser";
|
||||
import fs from "fs";
|
||||
import { decode } from "iconv-lite";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type Difficulties,
|
||||
type integer,
|
||||
type SongDocument,
|
||||
} from "../../../common/src";
|
||||
|
||||
import {
|
||||
CreateChartID,
|
||||
GetFreshSongIDGenerator,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import {
|
||||
GAME_GROUP_CONFIGS,
|
||||
GAME_PT_CONFIGS,
|
||||
GPTStringToV3,
|
||||
V3ToGameGroup,
|
||||
} from "../../../common/src";
|
||||
|
||||
const { CreateSongID, CreateChartID, ReadCollection, WriteCollection } = require("../../util");
|
||||
|
||||
// ── Stability map ─────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { type GameGroup, GetGPTString, GPTStringToV3, type Playtype } from "../../../common/src";
|
||||
|
||||
import { type GameGroup, GetGPTString, GPTStringToV3, type Playtype } from "../../../common/src";
|
||||
import { CreateFolderID, CreateTableID } from "../../util";
|
||||
const { ReadCollection, WriteCollection } = require("../../util");
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import chalk from "chalk";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { type GameGroup, V3ToGameGroup } from "../../common/src";
|
||||
import { z } from "zod";
|
||||
|
||||
import { type GameGroup, V3ToGameGroup } from "../../common/src";
|
||||
import { GetChartCollectionGame, GetSongCollectionGame, ReadCollection } from "../util";
|
||||
import { type AllCollections, V3_SCHEMAS } from "./schemas";
|
||||
import { FormatFunctions } from "./test-utils";
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import chalk from "chalk";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
type GameGroup,
|
||||
type GPTStrings,
|
||||
type SongDocument,
|
||||
} from "../../common/src";
|
||||
|
||||
import { ReadCollection } from "../util";
|
||||
import { FormatFunctions } from "./test-utils";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import chalk from "chalk";
|
||||
import { type GoalDocument } from "../../common/src";
|
||||
|
||||
import { type GoalDocument } from "../../common/src";
|
||||
import { CreateGoalID, ReadCollection } from "../util";
|
||||
import { FormatFunctions } from "./test-utils";
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import chalk from "chalk";
|
||||
import fjsh from "fast-json-stable-hash";
|
||||
import get from "lodash.get";
|
||||
|
||||
import { allSupportedGameGroups, type GameGroup, type integer } from "../../common/src";
|
||||
import { type SCHEMAS } from "../../common/src/lib/schemas";
|
||||
|
||||
import { ReadCollection } from "../util";
|
||||
import { FormatFunctions } from "./test-utils";
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import chalk from "chalk";
|
||||
|
||||
import {
|
||||
type ChartDocument,
|
||||
GetGPTConfig,
|
||||
@@ -9,7 +10,6 @@ import {
|
||||
type V3Game,
|
||||
V3ToGPTString,
|
||||
} from "../../common/src";
|
||||
|
||||
import { ReadCollection } from "../util";
|
||||
|
||||
// check that a given matchType works for a given game.
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// and no quest-goal desync, etc.
|
||||
|
||||
import chalk from "chalk";
|
||||
import { type GameGroup, v3AllGames, type V3Game, V3ToGameGroup } from "../../common/src";
|
||||
|
||||
import { type GameGroup, v3AllGames, type V3Game, V3ToGameGroup } from "../../common/src";
|
||||
import { ReadCollection } from "../util";
|
||||
import { FormatFunctions } from "./test-utils";
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { z, type ZodType } from "zod";
|
||||
|
||||
import {
|
||||
allSupportedGameGroups,
|
||||
GAME_GROUP_CONFIGS,
|
||||
@@ -7,7 +9,6 @@ import {
|
||||
type V3Game,
|
||||
V3ToGPTString,
|
||||
} from "../../common/src";
|
||||
import { z, type ZodType } from "zod";
|
||||
|
||||
export type AllCollections =
|
||||
| "bms-course-lookup.json"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { z } from "zod";
|
||||
|
||||
import chalk from "chalk";
|
||||
import { v3AllGames, V3FormatGame } from "../../common/src";
|
||||
|
||||
import { v3AllGames, V3FormatGame } from "../../common/src";
|
||||
import { ReadCollection } from "../util";
|
||||
import { type V3_TABLE_SCHEMA } from "./schemas";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { allSupportedGameGroups, type GameGroup, v3AllGames } from "../../common/src";
|
||||
|
||||
import { ReadCollection } from "../util";
|
||||
import { type V3_SCHEMAS } from "./schemas";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user