From ea8fc5ae52dd4f1343b4ec9309a3f8228501f7f3 Mon Sep 17 00:00:00 2001 From: Ludy Date: Wed, 12 Aug 2026 15:04:12 +0000 Subject: [PATCH] chore: configure repository editor settings (#7411) ## Description Moves the repository-wide VS Code settings out of PR #7386 into a dedicated pull request. ## Changes - Configure Ruff for Python files and point it at the engine project configuration. - Add repository-root paths for stylelint and CSS/SCSS/Less at-rule handling. - Enable Oxc safe fixes on save for JavaScript and TypeScript files. - Add Even Better TOML formatter settings for the repository's TOML files. This keeps PR #7386 focused on the Python tooling migration while preserving the editor configuration as a separately reviewable change. ## Validation - Exact file diff matches the settings change from PR #7386. - `task pre-commit:whitespace` was attempted; it is currently blocked by pre-existing whitespace issues in `engine/src/stirling/models/tool_io.py` and `engine/src/stirling/models/tool_models.py`. --- .vscode/settings.json | 48 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 39e4fec21e..f1dc4d746f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -135,13 +135,57 @@ "html.format.indentHandlebars": true, "html.format.preserveNewLines": true, "html.format.maxPreserveNewLines": 2, - "stylelint.configFile": "devTools/.stylelintrc.json", + "stylelint.configFile": "${workspaceFolder}/devTools/.stylelintrc.json", + "css.lint.unknownAtRules": "ignore", + "scss.lint.unknownAtRules": "ignore", + "less.lint.unknownAtRules": "ignore", "java.project.sourcePaths": [ "app/core/src/main/java", "app/common/src/main/java", "app/proprietary/src/main/java" ], + "[javascript]": { + "editor.codeActionsOnSave": { + "source.fixAll.oxc": "explicit" + } + }, + "[javascriptreact]": { + "editor.codeActionsOnSave": { + "source.fixAll.oxc": "explicit" + } + }, "[typescript]": { - "editor.defaultFormatter": "vscode.typescript-language-features" + "editor.defaultFormatter": "vscode.typescript-language-features", + "editor.codeActionsOnSave": { + "source.fixAll.oxc": "explicit" + } + }, + "[typescriptreact]": { + "editor.codeActionsOnSave": { + "source.fixAll.oxc": "explicit" + } + }, + "oxc.enable.oxlint": true, + "oxc.enable.oxfmt": false, + "oxc.configPath": "frontend/oxlint.config.ts", + "oxc.requireConfig": true, + "oxc.lint.run": "onType", + "oxc.fixKind": "safe_fix", + "[toml]": { + "editor.defaultFormatter": "tamasfe.even-better-toml", + // Keep TOML formatting compatible with .editorconfig and the pre-commit + // locale sorter. Key ordering itself is handled by task pre-commit:toml-sort. + "editor.insertSpaces": true, + "editor.tabSize": 4, + "editor.rulers": [127], + "evenBetterToml.formatter.alignEntries": false, + "evenBetterToml.formatter.alignComments": false, + "evenBetterToml.formatter.indentString": " ", + "evenBetterToml.formatter.columnWidth": 127, + "evenBetterToml.formatter.reorderKeys": false, + "evenBetterToml.formatter.reorderArrays": false, + "evenBetterToml.formatter.reorderInlineTables": false, + "evenBetterToml.formatter.trailingNewline": true, + "evenBetterToml.formatter.crlf": false } }