diff --git a/eslint.config.js b/eslint.config.js index 79471768f..b5f747860 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -103,8 +103,8 @@ export default [ "func-call-spacing": ["error", "never"], "function-call-argument-newline": ["error", "consistent"], "max-depth": ["error", { max: 5 }], - // "max-len": ["error", { code: 120 }], // TODO: Enable this rule, https://github.com/openfrontio/OpenFrontIO/issues/1785 - "max-lines": ["error", { max: 1065, skipBlankLines: true, skipComments: true }], + "max-len": ["error", { code: 120 }], + "max-lines": ["error", { max: 676, skipBlankLines: true, skipComments: true }], "max-lines-per-function": ["error", { max: 561 }], "no-loss-of-precision": "error", "no-multi-spaces": "error", @@ -138,6 +138,7 @@ export default [ "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-member-access": "off", + "max-len": "off", "sort-keys": "off", }, }, diff --git a/src/client/FlagInput.ts b/src/client/FlagInput.ts index aeb1f0493..0412ea9ab 100644 --- a/src/client/FlagInput.ts +++ b/src/client/FlagInput.ts @@ -56,12 +56,15 @@ export class FlagInput extends LitElement {
diff --git a/src/client/FlagInputModal.ts b/src/client/FlagInputModal.ts index eb4b65ad3..0c42bb71f 100644 --- a/src/client/FlagInputModal.ts +++ b/src/client/FlagInputModal.ts @@ -19,7 +19,10 @@ export class FlagInputModal extends LitElement { return html` ` : html` ` @@ -678,7 +694,9 @@ export class HostLobbyModal extends LitElement { await this.putGameConfig(); console.log( - `Starting private game with map: ${GameMapType[this.selectedMap as keyof typeof GameMapType]} ${this.useRandomMap ? " (Randomly selected)" : ""}`, + `Starting private game with map: ${ + GameMapType[this.selectedMap as keyof typeof GameMapType]} ${ + this.useRandomMap ? " (Randomly selected)" : ""}`, ); this.close(); const config = await getServerConfigFromClient(); diff --git a/src/client/JoinPrivateLobbyModal.ts b/src/client/JoinPrivateLobbyModal.ts index d67697836..d126d6ace 100644 --- a/src/client/JoinPrivateLobbyModal.ts +++ b/src/client/JoinPrivateLobbyModal.ts @@ -67,7 +67,13 @@ export class JoinPrivateLobbyModal extends LitElement { xmlns="http://www.w3.org/2000/svg" > diff --git a/src/client/LangSelector.ts b/src/client/LangSelector.ts index 76d40d86e..073e81d88 100644 --- a/src/client/LangSelector.ts +++ b/src/client/LangSelector.ts @@ -303,7 +303,12 @@ export class LangSelector extends LitElement {