From bf65b8e42694d8e48426cf67f7c11d0a0d6068f7 Mon Sep 17 00:00:00 2001 From: Eddy G Date: Tue, 24 Jun 2025 22:52:59 -0400 Subject: [PATCH] Update VS Code settings - "eslint.validate": [ "javascript" ] is no longer needed (Modern versions of the ESLint VS Code extensions automatically validate JavaScript files by default.) - Configure editor to use tabs instead of spaces per ESLint rules - Switch to VS Code's built-in HTML formatter - Add EJS file associations for proper syntax highlighting - Add recommended extensions for development workflow --- .vscode/settings.json | 5 +---- ws4kp.code-workspace | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index eb0daea..43905f0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,4 @@ "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" }, - "eslint.validate": [ - "javascript" - ], -} \ No newline at end of file +} diff --git a/ws4kp.code-workspace b/ws4kp.code-workspace index fbbdf04..b2a36e7 100644 --- a/ws4kp.code-workspace +++ b/ws4kp.code-workspace @@ -56,17 +56,29 @@ "**/vendor/auto/**", ], "editor.tabSize": 2, + "editor.insertSpaces": false, // .eslintrc wants tabs instead of spaces "emmet.includeLanguages": { "ejs": "html", }, "[html]": { - "editor.defaultFormatter": "j69.ejs-beautify" + // Use built-in VS Code HTML formatter instead of third-party EJS extension + "editor.defaultFormatter": "vscode.html-language-features" }, "files.exclude": {}, "files.eol": "\n", + "files.associations": { + "*.ejs": "ejs" + }, "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" - }, + } }, -} \ No newline at end of file + "extensions": { + "recommendations": [ + "digitalbrainstem.javascript-ejs-support", // EJS (Embedded JavaScript) template language support + "dbaeumer.vscode-eslint", // ESLint JavaScript linting integration + "streetsidesoftware.code-spell-checker", + ] + } +}