From 5424ef069f91189614cdba9153743d30ad26dcc9 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 1 Mar 2025 22:36:15 -0800 Subject: [PATCH] Lint translations and tools (Our earlier eslint changes missed some things.) --- eslint-ps-standard.mjs | 3 +- eslint.config.mjs | 8 +- tools/modlog/converter.ts | 115 +++++++++--------- translations/dutch/helptickets.ts | 2 +- translations/dutch/main.ts | 2 +- translations/dutch/minor-activities.ts | 2 +- translations/english/core-commands.ts | 2 +- translations/english/helptickets.ts | 2 +- translations/english/main.ts | 2 +- translations/english/minor-activities.ts | 2 +- translations/english/repeats.ts | 2 +- translations/english/trivia.ts | 2 +- translations/french/core-commands.ts | 2 +- translations/french/helptickets.ts | 2 +- translations/french/main.ts | 2 +- translations/french/minor-activities.ts | 2 +- translations/german/core-commands.ts | 2 +- translations/german/helptickets.ts | 2 +- translations/german/main.ts | 2 +- translations/german/minor-activities.ts | 2 +- translations/german/repeats.ts | 2 +- translations/hindi/main.ts | 2 +- translations/italian/core-commands.ts | 2 +- translations/italian/helptickets.ts | 2 +- translations/italian/main.ts | 2 +- translations/italian/minor-activities.ts | 2 +- translations/italian/repeats.ts | 2 +- translations/japanese/core-commands.ts | 2 +- translations/japanese/helptickets.ts | 2 +- translations/japanese/main.ts | 2 +- translations/japanese/minor-activities.ts | 2 +- translations/japanese/repeats.ts | 2 +- translations/portuguese/core-commands.ts | 2 +- translations/portuguese/helptickets.ts | 2 +- translations/portuguese/main.ts | 2 +- translations/portuguese/minor-activities.ts | 2 +- translations/portuguese/repeats.ts | 2 +- translations/simplifiedchinese/helptickets.ts | 2 +- translations/simplifiedchinese/main.ts | 2 +- .../simplifiedchinese/minor-activities.ts | 2 +- translations/spanish/core-commands.ts | 2 +- translations/spanish/helptickets.ts | 2 +- translations/spanish/main.ts | 2 +- translations/spanish/minor-activities.ts | 2 +- translations/spanish/repeats.ts | 2 +- translations/traditionalchinese/main.ts | 2 +- .../traditionalchinese/minor-activities.ts | 2 +- translations/turkish/main.ts | 2 +- 48 files changed, 109 insertions(+), 107 deletions(-) diff --git a/eslint-ps-standard.mjs b/eslint-ps-standard.mjs index 81f2493959..d06725bb51 100644 --- a/eslint-ps-standard.mjs +++ b/eslint-ps-standard.mjs @@ -103,6 +103,7 @@ export const defaultRules = { "no-template-curly-in-string": "error", "no-throw-literal": "warn", "no-unmodified-loop-condition": "error", + "no-unreachable": "warn", // best way to read first key of object // "no-unreachable-loop": "error", // ternary is used to convert callbacks to Promises @@ -268,7 +269,7 @@ export const defaultRulesTSChecked = { // style // ===== "@typescript-eslint/no-unnecessary-type-arguments": "error", - "@typescript-eslint/restrict-plus-operands": ["error", { + "@typescript-eslint/restrict-plus-operands": ["warn", { allowBoolean: false, allowNullish: false, allowNumberAndString: false, allowRegExp: false, }], "@typescript-eslint/restrict-template-expressions": ["error", { diff --git a/eslint.config.mjs b/eslint.config.mjs index 9038adf78a..8448c73f97 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -41,10 +41,8 @@ export default configure([ { name: "TypeScript", files: [ - "config/*.ts", "data/**/*.ts", "lib/*.ts", - "server/**/*.ts", "server/**/*.tsx", - "sim/**/*.ts", - "tools/set-import/*.ts", + "**/*.ts", + "**/*.tsx", ], extends: [configs.ts], languageOptions: { @@ -67,6 +65,8 @@ export default configure([ // }], "@typescript-eslint/restrict-template-expressions": "off", + // used in translations + "no-template-curly-in-string": "off", // hotpatching, of course "@typescript-eslint/no-require-imports": "off", // too new, let's give it more time diff --git a/tools/modlog/converter.ts b/tools/modlog/converter.ts index f59e7a6070..0f4a694e31 100644 --- a/tools/modlog/converter.ts +++ b/tools/modlog/converter.ts @@ -1,4 +1,3 @@ - /** * Converts modlogs between text and SQLite; also modernizes old-format modlogs * @author Annika @@ -21,12 +20,12 @@ if (!global.Config) { } import type * as DatabaseType from 'better-sqlite3'; -import type {ModlogEntry} from '../../server/modlog'; -import {FS} from '../../lib'; -import {IPTools} from '../../server/ip-tools'; +import type { ModlogEntry } from '../../server/modlog'; +import { FS } from '../../lib'; +import { IPTools } from '../../server/ip-tools'; const Database = Config.usesqlite ? require('better-sqlite3') : null; -const {Modlog} = require('../../server/modlog'); +const { Modlog } = require('../../server/modlog'); type ModlogFormat = 'txt' | 'sqlite'; @@ -56,7 +55,7 @@ function toID(text: any): ID { export function modernizeLog(line: string, nextLine?: string): string | undefined { // first we save and remove the timestamp and the roomname - const prefix = line.match(/\[.+?\] \(.+?\) /i)?.[0]; + const prefix = (/\[.+?\] \(.+?\) /i.exec(line))?.[0]; if (!prefix) return; if (ALTS_REGEX.test(line) || AUTOCONFIRMED_REGEX.test(line)) return; line = line.replace(prefix, ''); @@ -122,13 +121,13 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine return `${prefix}TRIVIAGAME: by unknown: ${line}`; } - const modernizerTransformations: {[k: string]: (log: string) => string} = { - 'notes: ': (log) => { + const modernizerTransformations: { [k: string]: (log: string) => string } = { + 'notes: ': log => { const [actionTaker, ...rest] = line.split(' notes: '); return `NOTE: by ${toID(actionTaker)}: ${rest.join('')}`; }, - ' declared': (log) => { + ' declared': log => { let newAction = 'DECLARE'; let oldAction = ' declared'; if (log.includes(' globally declared')) { @@ -148,14 +147,14 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine return `${newAction}: by ${actionTakerName}: ${log}`; }, - 'changed the roomdesc to: ': (log) => { + 'changed the roomdesc to: ': log => { const actionTaker = parseBrackets(log, '['); log = log.slice(actionTaker.length + 3); log = log.slice('changed the roomdesc to: '.length + 1, -2); return `ROOMDESC: by ${actionTaker}: to "${log}"`; }, - 'roomevent titled "': (log) => { + 'roomevent titled "': log => { let action; if (log.includes(' added a roomevent titled "')) { action = 'added a'; @@ -170,54 +169,54 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine return `ROOMEVENT: by ${toID(actionTakerName)}: ${action.split(' ')[0]} "${eventName}"`; }, - 'set modchat to ': (log) => { + 'set modchat to ': log => { const actionTaker = parseBrackets(log, '['); log = log.slice(actionTaker.length + 3); log = log.slice('set modchat to '.length); return `MODCHAT: by ${actionTaker}: to ${log}`; }, - 'set modjoin to ': (log) => { + 'set modjoin to ': log => { const actionTakerName = log.slice(0, log.lastIndexOf(' set')); log = log.slice(actionTakerName.length + 1); log = log.slice('set modjoin to '.length); const rank = log.startsWith('sync') ? 'sync' : log.replace('.', ''); return `MODJOIN${rank === 'sync' ? ' SYNC' : ''}: by ${toID(actionTakerName)}${rank !== 'sync' ? `: ${rank}` : ``}`; }, - 'turned off modjoin': (log) => { + 'turned off modjoin': log => { const actionTakerName = log.slice(0, log.lastIndexOf(' turned off modjoin')); return `MODJOIN: by ${toID(actionTakerName)}: OFF`; }, - 'changed the roomintro': (log) => { + 'changed the roomintro': log => { const isDeletion = /deleted the (staff|room)intro/.test(log); const isRoomintro = log.includes('roomintro'); const actionTaker = toID(log.slice(0, log.indexOf(isDeletion ? 'deleted' : 'changed'))); return `${isDeletion ? 'DELETE' : ''}${isRoomintro ? 'ROOM' : 'STAFF'}INTRO: by ${actionTaker}`; }, - 'deleted the roomintro': (log) => modernizerTransformations['changed the roomintro'](log), - 'changed the staffintro': (log) => modernizerTransformations['changed the roomintro'](log), - 'deleted the staffintro': (log) => modernizerTransformations['changed the roomintro'](log), + 'deleted the roomintro': log => modernizerTransformations['changed the roomintro'](log), + 'changed the staffintro': log => modernizerTransformations['changed the roomintro'](log), + 'deleted the staffintro': log => modernizerTransformations['changed the roomintro'](log), - 'created a tournament in': (log) => { + 'created a tournament in': log => { const actionTaker = parseBrackets(log, '['); log = log.slice(actionTaker.length + 3); log = log.slice(24, -8); return `TOUR CREATE: by ${actionTaker}: ${log}`; }, - 'was disqualified from the tournament by': (log) => { + 'was disqualified from the tournament by': log => { const disqualified = parseBrackets(log, '['); log = log.slice(disqualified.length + 3); log = log.slice('was disqualified from the tournament by'.length); return `TOUR DQ: [${toID(disqualified)}] by ${toID(log)}`; }, - 'The tournament auto disqualify timeout was set to': (log) => { + 'The tournament auto disqualify timeout was set to': log => { const byIndex = log.indexOf(' by '); const actionTaker = log.slice(byIndex + ' by '.length); const length = log.slice('The tournament auto disqualify timeout was set to'.length, byIndex); return `TOUR AUTODQ: by ${toID(actionTaker)}: ${length.trim()}`; }, - ' was blacklisted from ': (log) => { + ' was blacklisted from ': log => { const isName = log.includes(' was nameblacklisted from '); const banned = toID(log.slice(0, log.indexOf(` was ${isName ? 'name' : ''}blacklisted from `))); log = log.slice(log.indexOf(' by ') + ' by '.length); @@ -230,8 +229,8 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine const actionTaker = toID(log); return `${isName ? 'NAME' : ''}BLACKLIST: [${banned}] ${getAutoconfirmed()}${getAlts()}${ip ? `[${ip}] ` : ``}by ${actionTaker}${reason ? `: ${reason}` : ``}`; }, - ' was nameblacklisted from ': (log) => modernizerTransformations[' was blacklisted from '](log), - ' was banned from room ': (log) => { + ' was nameblacklisted from ': log => modernizerTransformations[' was blacklisted from '](log), + ' was banned from room ': log => { const banned = toID(log.slice(0, log.indexOf(' was banned from room '))); log = log.slice(log.indexOf(' by ') + ' by '.length); let reason, ip; @@ -243,7 +242,7 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine const actionTaker = toID(log); return `ROOMBAN: [${banned}] ${getAutoconfirmed()}${getAlts()}${ip ? `[${ip}] ` : ``}by ${actionTaker}${reason ? `: ${reason}` : ``}`; }, - ' was muted by ': (log) => { + ' was muted by ': log => { let muted = ''; let isHour = false; [muted, log] = log.split(' was muted by '); @@ -261,7 +260,7 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine } return `${isHour ? 'HOUR' : ''}MUTE: [${muted}] ${getAutoconfirmed()}${getAlts()}${ip ? `[${ip}] ` : ``}by ${actionTaker}${reason ? `: ${reason}` : ``}`; }, - ' was locked from talking ': (log) => { + ' was locked from talking ': log => { const isWeek = log.includes(' was locked from talking for a week '); const locked = toID(log.slice(0, log.indexOf(' was locked from talking '))); log = log.slice(log.indexOf(' by ') + ' by '.length); @@ -274,7 +273,7 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine const actionTaker = toID(log); return `${isWeek ? 'WEEK' : ''}LOCK: [${locked}] ${getAutoconfirmed()}${getAlts()}${ip ? `[${ip}] ` : ``}by ${actionTaker}${reason ? `: ${reason}` : ``}`; }, - ' was banned ': (log) => { + ' was banned ': log => { if (log.includes(' was banned from room ')) return modernizerTransformations[' was banned from room '](log); const banned = toID(log.slice(0, log.indexOf(' was banned '))); log = log.slice(log.indexOf(' by ') + ' by '.length); @@ -288,7 +287,7 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine return `BAN: [${banned}] ${getAutoconfirmed()}${getAlts()}${ip ? `[${ip}] ` : ``}by ${actionTaker}${reason ? `: ${reason}` : ``}`; }, - 'was promoted to ': (log) => { + 'was promoted to ': log => { const isDemotion = log.includes('was demoted to '); const userid = toID(log.split(' was ')[0]); if (!userid) { @@ -303,8 +302,8 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine const actionTaker = parseBrackets(log, '['); return `${rank}: [${userid}] by ${actionTaker}${isDemotion ? ': (demote)' : ''}`; }, - 'was demoted to ': (log) => modernizerTransformations['was promoted to '](log), - 'was appointed Room Owner by ': (log) => { + 'was demoted to ': log => modernizerTransformations['was promoted to '](log), + 'was appointed Room Owner by ': log => { const userid = parseBrackets(log, '['); log = log.slice(userid.length + 3); log = log.slice('was appointed Room Owner by '.length); @@ -312,8 +311,8 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine return `ROOMOWNER: [${userid}] by ${actionTaker}`; }, - ' claimed this ticket': (log) => { - const actions: {[k: string]: string} = { + ' claimed this ticket': log => { + const actions: { [k: string]: string } = { ' claimed this ticket': 'TICKETCLAIM', ' closed this ticket': 'TICKETCLOSE', ' deleted this ticket': 'TICKETDELETE', @@ -326,24 +325,24 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine } return log; }, - 'This ticket is now claimed by ': (log) => { + 'This ticket is now claimed by ': log => { const claimer = toID(log.slice(log.indexOf(' by ') + ' by '.length)); return `TICKETCLAIM: by ${claimer}`; }, - ' is no longer interested in this ticket': (log) => { + ' is no longer interested in this ticket': log => { const abandoner = toID(log.slice(0, log.indexOf(' is no longer interested in this ticket'))); return `TICKETABANDON: by ${abandoner}`; }, - ' opened a new ticket': (log) => { + ' opened a new ticket': log => { const opener = toID(log.slice(0, log.indexOf(' opened a new ticket'))); const problem = log.slice(log.indexOf(' Issue: ') + ' Issue: '.length).trim(); return `TICKETOPEN: by ${opener}: ${problem}`; }, - ' closed this ticket': (log) => modernizerTransformations[' claimed this ticket'](log), - ' deleted this ticket': (log) => modernizerTransformations[' claimed this ticket'](log), + ' closed this ticket': log => modernizerTransformations[' claimed this ticket'](log), + ' deleted this ticket': log => modernizerTransformations[' claimed this ticket'](log), 'This ticket is no longer claimed': () => 'TICKETUNCLAIM', - ' has been caught attempting a hunt with ': (log) => { + ' has been caught attempting a hunt with ': log => { const index = log.indexOf(' has been caught attempting a hunt with '); const user = toID(log.slice(0, index)); log = log.slice(index + ' has been caught attempting a hunt with '.length); @@ -351,40 +350,40 @@ export function modernizeLog(line: string, nextLine?: string): string | undefine return `SCAV CHEATER: [${user}]: caught attempting a hunt with ${log}`; }, - 'made this room hidden': (log) => { + 'made this room hidden': log => { const user = toID(log.slice(0, log.indexOf(' made this room hidden'))); return `HIDDENROOM: by ${user}`; }, - 'The tournament auto start timer was set to ': (log) => { + 'The tournament auto start timer was set to ': log => { log = log.slice('The tournament auto start timer was set to'.length); const [length, setter] = log.split(' by ').map(toID); return `TOUR AUTOSTART: by ${setter}: ${length}`; }, - 'The tournament auto disqualify timer was set to ': (log) => { + 'The tournament auto disqualify timer was set to ': log => { log = log.slice('The tournament auto disqualify timer was set to'.length); const [length, setter] = log.split(' by ').map(toID); return `TOUR AUTODQ: by ${setter}: ${length}`; }, - " set the tournament's banlist to ": (log) => { + " set the tournament's banlist to ": log => { const [setter, banlist] = log.split(` set the tournament's banlist to `); return `TOUR BANLIST: by ${toID(setter)}: ${banlist.slice(0, -1)}`; // remove trailing . from banlist }, - " set the tournament's custom rules to": (log) => { + " set the tournament's custom rules to": log => { const [setter, rules] = log.split(` set the tournament's custom rules to `); return `TOUR RULES: by ${toID(setter)}: ${rules.slice(0, -1)}`; }, - '[agameofhangman] was started by ': (log) => `HANGMAN: by ${toID(log.slice('[agameofhangman] was started by '.length))}`, - '[agameofunowas] created by ': (log) => `UNO CREATE: by ${toID(log.slice('[agameofunowas] created by '.length))}`, - '[thetournament] was set to autostart': (log) => { + '[agameofhangman] was started by ': log => `HANGMAN: by ${toID(log.slice('[agameofhangman] was started by '.length))}`, + '[agameofunowas] created by ': log => `UNO CREATE: by ${toID(log.slice('[agameofunowas] created by '.length))}`, + '[thetournament] was set to autostart': log => { const [, user] = log.split(' by '); return `TOUR AUTOSTART: by ${toID(user)}: when playercap is reached`; }, - '[thetournament] was set to allow scouting': (log) => { + '[thetournament] was set to allow scouting': log => { const [, user] = log.split(' by '); return `TOUR SCOUT: by ${toID(user)}: allow`; }, - '[thetournament] was set to disallow scouting': (log) => { + '[thetournament] was set to disallow scouting': log => { const [, user] = log.split(' by '); return `TOUR SCOUT: by ${toID(user)}: disallow`; }, @@ -446,7 +445,7 @@ export function parseModlog(raw: string, nextLine?: string, isGlobal = false): M line = line.slice(actionColonIndex + 2); } - if (line[0] === '[') { + if (line.startsWith('[')) { if (!IP_ONLY_ACTIONS.has(log.action)) { const userid = toID(parseBrackets(line, '[')); log.userid = userid; @@ -481,7 +480,7 @@ export function parseModlog(raw: string, nextLine?: string, isGlobal = false): M log.alts = [...alts]; } } - if (line[0] === '[') { + if (line.startsWith('[')) { log.ip = parseBrackets(line, '['); line = line.slice(log.ip.length + 3).trim(); } @@ -523,7 +522,7 @@ export function rawifyLog(log: ModlogEntry) { export class ModlogConverterSQLite { readonly databaseFile: string; readonly textLogDir: string; - readonly isTesting: {files: Map, db: DatabaseType.Database} | null = null; + readonly isTesting: { files: Map, db: DatabaseType.Database } | null = null; readonly newestAllowedTimestamp?: number; constructor( @@ -533,16 +532,16 @@ export class ModlogConverterSQLite { this.databaseFile = databaseFile; this.textLogDir = textLogDir; if (isTesting || Config.nofswriting) { - this.isTesting = {files: new Map(), db: isTesting || new Database(':memory:')}; + this.isTesting = { files: new Map(), db: isTesting || new Database(':memory:') }; } this.newestAllowedTimestamp = newestAllowedTimestamp; } async toTxt() { - const database = this.isTesting?.db || new Database(this.databaseFile, {fileMustExist: true}); + const database = this.isTesting?.db || new Database(this.databaseFile, { fileMustExist: true }); const roomids = database.prepare('SELECT DISTINCT roomid FROM modlog').all(); const globalEntries = []; - for (const {roomid} of roomids) { + for (const { roomid } of roomids) { if (!Config.nofswriting) console.log(`Reading ${roomid}...`); const results = database.prepare( `SELECT *, (SELECT group_concat(userid, ',') FROM alts WHERE alts.modlog_id = modlog.modlog_id) as alts ` + @@ -563,6 +562,7 @@ export class ModlogConverterSQLite { process.stdout.write(`Wrote ${entriesLogged} entries from '${trueRoomID}'`); } await this.writeFile(`${this.textLogDir}/modlog_${trueRoomID}.txt`, entries.join('')); + // eslint-disable-next-line require-atomic-updates entries = []; }; @@ -611,7 +611,7 @@ export class ModlogConverterTxt { readonly newestAllowedTimestamp?: number; readonly textLogDir: string; - readonly isTesting: {files: Map, ml?: typeof Modlog} | null = null; + readonly isTesting: { files: Map, ml?: typeof Modlog } | null = null; constructor( databaseFile: string, textLogDir: string, @@ -630,7 +630,7 @@ export class ModlogConverterTxt { this.isTesting ? ':memory:' : this.databaseFile, // wait 15 seconds for DB to no longer be busy - this is important since I'm trying to do // a no-downtime transfer of text -> SQLite - {sqliteOptions: {timeout: 15000}}, + { sqliteOptions: { timeout: 15000 } }, ); this.newestAllowedTimestamp = newestAllowedTimestamp; } @@ -647,7 +647,7 @@ export class ModlogConverterTxt { // we don't want to insert global modlog entries twice, so we keep track of global ones // and don't reinsert them /** roomid:list of modlog entry strings */ - const globalEntries: {[k: string]: string[]} = {}; + const globalEntries: { [k: string]: string[] } = {}; for (const file of files) { if (file === 'README.md') continue; @@ -730,6 +730,7 @@ export class ModlogConverterTest { process.stdout.write(`Wrote ${entriesLogged} entries from '${roomid}'`); } await FS(`${this.outputDir}/modlog_${roomid}.txt`).append(entries.join('')); + // eslint-disable-next-line require-atomic-updates entries = []; }; diff --git a/translations/dutch/helptickets.ts b/translations/dutch/helptickets.ts index 15c3bd1aa0..1ebf9ddfee 100644 --- a/translations/dutch/helptickets.ts +++ b/translations/dutch/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/dutch/main.ts b/translations/dutch/main.ts index 73dfe16d7e..1750610a79 100644 --- a/translations/dutch/main.ts +++ b/translations/dutch/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Dutch", diff --git a/translations/dutch/minor-activities.ts b/translations/dutch/minor-activities.ts index 61811e864e..4ccf67469e 100644 --- a/translations/dutch/minor-activities.ts +++ b/translations/dutch/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/english/core-commands.ts b/translations/english/core-commands.ts index dc569b592e..5ce40a06bd 100644 --- a/translations/english/core-commands.ts +++ b/translations/english/core-commands.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/english/helptickets.ts b/translations/english/helptickets.ts index 42c5372389..64908ad5db 100644 --- a/translations/english/helptickets.ts +++ b/translations/english/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/english/main.ts b/translations/english/main.ts index a98056aeb9..a71bcc1a75 100644 --- a/translations/english/main.ts +++ b/translations/english/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "English", diff --git a/translations/english/minor-activities.ts b/translations/english/minor-activities.ts index 7edf786a35..85d5df744c 100644 --- a/translations/english/minor-activities.ts +++ b/translations/english/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/english/repeats.ts b/translations/english/repeats.ts index 932a0fc982..8140526c32 100644 --- a/translations/english/repeats.ts +++ b/translations/english/repeats.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/english/trivia.ts b/translations/english/trivia.ts index 53ee6f37fa..88d1f140b7 100644 --- a/translations/english/trivia.ts +++ b/translations/english/trivia.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/french/core-commands.ts b/translations/french/core-commands.ts index a78660346e..57bdad9048 100644 --- a/translations/french/core-commands.ts +++ b/translations/french/core-commands.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/french/helptickets.ts b/translations/french/helptickets.ts index 04ca9e1c90..c81243d935 100644 --- a/translations/french/helptickets.ts +++ b/translations/french/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/french/main.ts b/translations/french/main.ts index b55d324722..ebaea6f79c 100644 --- a/translations/french/main.ts +++ b/translations/french/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "French", diff --git a/translations/french/minor-activities.ts b/translations/french/minor-activities.ts index 37738f2df5..6a017ceead 100644 --- a/translations/french/minor-activities.ts +++ b/translations/french/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/german/core-commands.ts b/translations/german/core-commands.ts index 1cec92a39d..a0d3e5632e 100644 --- a/translations/german/core-commands.ts +++ b/translations/german/core-commands.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/german/helptickets.ts b/translations/german/helptickets.ts index c5207090c7..b61bc2bc85 100644 --- a/translations/german/helptickets.ts +++ b/translations/german/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/german/main.ts b/translations/german/main.ts index 90c1a26b69..a12557f25e 100644 --- a/translations/german/main.ts +++ b/translations/german/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "German", diff --git a/translations/german/minor-activities.ts b/translations/german/minor-activities.ts index f01517439e..440423d5bc 100644 --- a/translations/german/minor-activities.ts +++ b/translations/german/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/german/repeats.ts b/translations/german/repeats.ts index 3a8759132d..03c3713af7 100644 --- a/translations/german/repeats.ts +++ b/translations/german/repeats.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/hindi/main.ts b/translations/hindi/main.ts index c8746b0fd8..66dd65dba8 100644 --- a/translations/hindi/main.ts +++ b/translations/hindi/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Hindi", diff --git a/translations/italian/core-commands.ts b/translations/italian/core-commands.ts index 85b2d8dbde..e85afddaba 100644 --- a/translations/italian/core-commands.ts +++ b/translations/italian/core-commands.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/italian/helptickets.ts b/translations/italian/helptickets.ts index 343c53633b..7466a7212f 100644 --- a/translations/italian/helptickets.ts +++ b/translations/italian/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/italian/main.ts b/translations/italian/main.ts index 63ef5103c0..8cdd6fbf0e 100644 --- a/translations/italian/main.ts +++ b/translations/italian/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Italian", diff --git a/translations/italian/minor-activities.ts b/translations/italian/minor-activities.ts index eddf76f57b..7a5cdbb32e 100644 --- a/translations/italian/minor-activities.ts +++ b/translations/italian/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/italian/repeats.ts b/translations/italian/repeats.ts index 827d50b34c..401de02d46 100644 --- a/translations/italian/repeats.ts +++ b/translations/italian/repeats.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/japanese/core-commands.ts b/translations/japanese/core-commands.ts index 68f0edc9b4..5e23032555 100644 --- a/translations/japanese/core-commands.ts +++ b/translations/japanese/core-commands.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/japanese/helptickets.ts b/translations/japanese/helptickets.ts index 4f8021a3d4..5ff8dc69a6 100644 --- a/translations/japanese/helptickets.ts +++ b/translations/japanese/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/japanese/main.ts b/translations/japanese/main.ts index 2e11e4f445..57f22c045e 100644 --- a/translations/japanese/main.ts +++ b/translations/japanese/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Japanese", diff --git a/translations/japanese/minor-activities.ts b/translations/japanese/minor-activities.ts index e73c5e6df3..2297fd469e 100644 --- a/translations/japanese/minor-activities.ts +++ b/translations/japanese/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/japanese/repeats.ts b/translations/japanese/repeats.ts index d084d870c8..a6ee0bdaa4 100644 --- a/translations/japanese/repeats.ts +++ b/translations/japanese/repeats.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/portuguese/core-commands.ts b/translations/portuguese/core-commands.ts index 99c64c95e4..7162b294e5 100644 --- a/translations/portuguese/core-commands.ts +++ b/translations/portuguese/core-commands.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/portuguese/helptickets.ts b/translations/portuguese/helptickets.ts index e569d6013a..74b67316be 100644 --- a/translations/portuguese/helptickets.ts +++ b/translations/portuguese/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/portuguese/main.ts b/translations/portuguese/main.ts index 3e01a762ad..62243af52f 100644 --- a/translations/portuguese/main.ts +++ b/translations/portuguese/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Portuguese", diff --git a/translations/portuguese/minor-activities.ts b/translations/portuguese/minor-activities.ts index c062a4f08c..f1ae4c3913 100644 --- a/translations/portuguese/minor-activities.ts +++ b/translations/portuguese/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/portuguese/repeats.ts b/translations/portuguese/repeats.ts index bdfbdd1d41..2fb52dfeb5 100644 --- a/translations/portuguese/repeats.ts +++ b/translations/portuguese/repeats.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/simplifiedchinese/helptickets.ts b/translations/simplifiedchinese/helptickets.ts index dc8a215054..16d85d7c65 100644 --- a/translations/simplifiedchinese/helptickets.ts +++ b/translations/simplifiedchinese/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/simplifiedchinese/main.ts b/translations/simplifiedchinese/main.ts index ab9405d36d..b2f6fe68ba 100644 --- a/translations/simplifiedchinese/main.ts +++ b/translations/simplifiedchinese/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Simplified Chinese", diff --git a/translations/simplifiedchinese/minor-activities.ts b/translations/simplifiedchinese/minor-activities.ts index d54c2b34fe..62aaedfe25 100644 --- a/translations/simplifiedchinese/minor-activities.ts +++ b/translations/simplifiedchinese/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/spanish/core-commands.ts b/translations/spanish/core-commands.ts index 63b65628c5..1c6788abaa 100644 --- a/translations/spanish/core-commands.ts +++ b/translations/spanish/core-commands.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/spanish/helptickets.ts b/translations/spanish/helptickets.ts index bbf047e3f0..57e312e8e6 100644 --- a/translations/spanish/helptickets.ts +++ b/translations/spanish/helptickets.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/spanish/main.ts b/translations/spanish/main.ts index 5544a6bcc9..1906841e42 100644 --- a/translations/spanish/main.ts +++ b/translations/spanish/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Spanish", diff --git a/translations/spanish/minor-activities.ts b/translations/spanish/minor-activities.ts index 4eac5ce519..99065df78c 100644 --- a/translations/spanish/minor-activities.ts +++ b/translations/spanish/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/spanish/repeats.ts b/translations/spanish/repeats.ts index e8a5478d67..9aac58f30b 100644 --- a/translations/spanish/repeats.ts +++ b/translations/spanish/repeats.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { strings: { diff --git a/translations/traditionalchinese/main.ts b/translations/traditionalchinese/main.ts index f28cc036ac..eb1e2672f0 100644 --- a/translations/traditionalchinese/main.ts +++ b/translations/traditionalchinese/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Traditional Chinese", diff --git a/translations/traditionalchinese/minor-activities.ts b/translations/traditionalchinese/minor-activities.ts index 82b6d49621..6a93e0cf80 100644 --- a/translations/traditionalchinese/minor-activities.ts +++ b/translations/traditionalchinese/minor-activities.ts @@ -1,4 +1,4 @@ -import type {Translations} from "../../server/chat"; +import type { Translations } from "../../server/chat"; export const translations: Translations = { strings: { diff --git a/translations/turkish/main.ts b/translations/turkish/main.ts index 782b6782c0..0abd3b101c 100644 --- a/translations/turkish/main.ts +++ b/translations/turkish/main.ts @@ -1,4 +1,4 @@ -import type {Translations} from '../../server/chat'; +import type { Translations } from '../../server/chat'; export const translations: Translations = { name: "Turkish",