From c23a53c8d2c40ddc1e8332315b1ab816730acb27 Mon Sep 17 00:00:00 2001 From: Ashwin Bhatkal Date: Fri, 24 Apr 2026 20:39:30 +0530 Subject: [PATCH] fix: add config path and fmt config path in vs code settings (#11093) * fix: add config path vs code settings * fix: add fmt config path as well * fix: quiet instead of fix --- .vscode/settings.json | 3 ++- frontend/.oxlintrc.json | 4 ++-- frontend/package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 48fe5dfb6..179ce0cc2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,8 @@ { "oxc.typeAware": true, "oxc.tsConfigPath": "./frontend/tsconfig.json", + "oxc.configPath": "./frontend/.oxlintrc.json", + "oxc.fmt.configPath": "./frontend/.oxfmtrc.json", "editor.formatOnSave": true, "editor.defaultFormatter": "oxc.oxc-vscode", "editor.codeActionsOnSave": { @@ -19,4 +21,3 @@ "python-envs.defaultEnvManager": "ms-python.python:system", "python-envs.pythonProjects": [] } - diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json index 2faf724ac..d5b1b6c7a 100644 --- a/frontend/.oxlintrc.json +++ b/frontend/.oxlintrc.json @@ -538,8 +538,8 @@ "sonarjs/no-nested-template-literals": "error", // Avoids nested template literals "sonarjs/no-redundant-boolean": "warn", // TODO: Change to error after migration - // Removes redundant boolean literals - "sonarjs/no-redundant-jump": "error", + // Removes redundant boolean literals - turned off because it clashes with unicorn rules + "sonarjs/no-redundant-jump": "off", // Removes unnecessary returns/continues "sonarjs/no-same-line-conditional": "error", // Prevents same-line conditionals diff --git a/frontend/package.json b/frontend/package.json index 004101dfd..dc5a50df4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -241,7 +241,7 @@ "lint-staged": { "*.(js|jsx|ts|tsx)": [ "oxfmt --check", - "oxlint --fix", + "oxlint --quiet", "sh scripts/typecheck-staged.sh" ] },