diff --git a/.gitignore b/.gitignore index 073b21cf322a..52d9bc66e5b6 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,7 @@ validators .tmp .npmrc .vscode/launch.json -.vscode/settings.json +!.vscode/settings.json .vscode/tasks.json # Tests artifacts diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000000..fbc0552fe61c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "window.title": "${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}[${activeRepositoryBranchName}]", + "editor.defaultFormatter": "esbenp.prettier-vscode", + // For `sysoev.vscode-open-in-github` extension + "openInGitHub.defaultBranch": "unstable", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.biome": "explicit", + }, + "[javascript]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[typescript]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[json]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[jsonc]": { + "editor.defaultFormatter": "biomejs.biome" + } +} diff --git a/biome.jsonc b/biome.jsonc index de0689f2d761..212a61d86aa2 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -18,6 +18,9 @@ "ignore": ["**/lib", "**/.nyc_output", "./packages/*/spec-tests", "**/node_modules", "./packages/*/node_modules/**"] }, "organizeImports": { + // TODO: We will enable this settings as soon mono-repo support is provided in biome. + // Currently it didn't recognize local packages in repo and sort those higher than npm packages + // https://github.com/biomejs/biome/issues/2228 "enabled": false }, "linter": { diff --git a/lodestar.code-workspace b/lodestar.code-workspace deleted file mode 100644 index 7030ab8d7270..000000000000 --- a/lodestar.code-workspace +++ /dev/null @@ -1,12 +0,0 @@ -{ - "settings": { - "window.title": "${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}[${activeRepositoryBranchName}]", - "editor.defaultFormatter": "esbenp.prettier-vscode", - "[javascript]": { - "editor.defaultFormatter": "biomejs.biome" - }, - "[typescript]": { - "editor.defaultFormatter": "biomejs.biome" - }, - } -}