From 294d9dbfa4a0e73390780da041fc3e840ccebd48 Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Sat, 16 Aug 2025 12:11:57 -0400 Subject: [PATCH] Enable the `@stylistic/eol-last` eslint rule (#1834) ## Description: Enable the `@stylistic/eol-last` eslint rule. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced --- eslint.config.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 9f7582682..79471768f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -2,7 +2,7 @@ import eslintConfigPrettier from "eslint-config-prettier/flat"; import globals from "globals"; import path from "node:path"; import pluginJs from "@eslint/js"; -import stylisticTs from "@stylistic/eslint-plugin"; +import stylistic from "@stylistic/eslint-plugin"; import tseslint from "typescript-eslint"; import { fileURLToPath } from "node:url"; import { includeIgnoreFile } from "@eslint/compat"; @@ -49,15 +49,15 @@ export default [ }, { plugins: { - "@stylistic/ts": stylisticTs, + "@stylistic": stylistic, }, rules: { // Enable rules - // '@stylistic/ts/quotes': ['error', 'single'], TODO: Enable this rule, https://github.com/openfrontio/OpenFrontIO/issues/1788 - "@stylistic/ts/indent": ["error", 2], - "@stylistic/ts/semi": "error", - "@stylistic/ts/space-infix-ops": "error", - "@stylistic/ts/type-annotation-spacing": [ + // '@stylistic/quotes': ['error', 'single'], TODO: Enable this rule, https://github.com/openfrontio/OpenFrontIO/issues/1788 + "@stylistic/indent": ["error", 2], + "@stylistic/semi": "error", + "@stylistic/space-infix-ops": "error", + "@stylistic/type-annotation-spacing": [ "error", { after: true, @@ -69,6 +69,7 @@ export default [ }, }, ], + "@stylistic/eol-last": "error", "@typescript-eslint/consistent-type-definitions": [ "error", "type", @@ -85,7 +86,7 @@ export default [ "@typescript-eslint/prefer-literal-enum-member": "error", "@typescript-eslint/prefer-nullish-coalescing": "error", "eqeqeq": "error", - "indent": "off", // @stylistic/ts/indent + "indent": "off", // @stylistic/indent "sort-keys": "error", "@typescript-eslint/no-unsafe-argument": "error", "@typescript-eslint/no-unsafe-assignment": "error",