From 12891ceac68db50155d22d01105305cefbca0d8d Mon Sep 17 00:00:00 2001 From: Refringe Date: Fri, 10 Nov 2023 15:16:21 -0500 Subject: [PATCH] Additional formatting configuration changes. --- project/.eslintrc.json | 26 +++++++++++++------------- project/.vscode/launch.json | 3 --- project/Server.code-workspace | 10 +++++++++- project/dprint.json | 1 - 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/project/.eslintrc.json b/project/.eslintrc.json index fc5a0d14..54b23e15 100644 --- a/project/.eslintrc.json +++ b/project/.eslintrc.json @@ -11,10 +11,10 @@ "plugin:@typescript-eslint/eslint-recommended" ], "rules": { - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-namespace": "off", - "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/no-empty-interface": "off", + "@typescript-eslint/no-explicit-any": "off", // We use a bunch of these. + "@typescript-eslint/no-unused-vars": "off", // Typescript compiler already checks--Will grey out variable. "@typescript-eslint/no-var-requires": "error", "@typescript-eslint/explicit-module-boundary-types": ["error", { "allowArgumentsExplicitlyTypedAsAny": true }], "@typescript-eslint/naming-convention": ["error", { @@ -42,21 +42,21 @@ }] }, "overrides": [{ - "files": [ - "src/callbacks/**/*.js", - "src/controllers/**/*.js" - ], - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": "off" - } - }, { "files": [ "src/loaders/**/*.ts" ], "rules": { - "no-var-requires": "off", "@typescript-eslint/no-var-requires": "off" } + }, { + "files": [ + "**/vitest.config.ts" + ], + "rules": { + "@typescript-eslint/naming-convention": ["error", { + "selector": "objectLiteralProperty", + "format": null + }] + } }] } diff --git a/project/.vscode/launch.json b/project/.vscode/launch.json index a4a405ec..ebd31c51 100644 --- a/project/.vscode/launch.json +++ b/project/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { diff --git a/project/Server.code-workspace b/project/Server.code-workspace index ce3449b0..38ce6f32 100644 --- a/project/Server.code-workspace +++ b/project/Server.code-workspace @@ -9,7 +9,8 @@ "EditorConfig.EditorConfig", "dprint.dprint", "dbaeumer.vscode-eslint", - "biomejs.biome" + "biomejs.biome", + "streetsidesoftware.code-spell-checker" ] }, "settings": { @@ -19,6 +20,13 @@ "editor.codeActionsOnSave": [ "source.fixAll.eslint", "source.organizeImports.biome" + ], + "cSpell.words": [ + "deathmatch", + "gethideout", + "profileid", + "requestid", + "scavcase" ] } } diff --git a/project/dprint.json b/project/dprint.json index 8853221a..287af9de 100644 --- a/project/dprint.json +++ b/project/dprint.json @@ -63,7 +63,6 @@ "excludes": [ "**/*.js", "**/*.d.ts", - "**/*.swcrc", "**/*-lock.json", "**/.git/**/*", "**/node_modules/**/*",