0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Make Biome formatting work out-of-the-box in VS Code (#11759)

This commit is contained in:
Alan 2024-08-23 01:29:50 -07:00 committed by GitHub
parent cf65476b27
commit a3b9b91caf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 4 deletions

8
.gitignore vendored
View file

@ -16,9 +16,6 @@ package-lock.json
.eslintcache .eslintcache
.pnpm-store .pnpm-store
# ignore top-level vscode settings
/.vscode/settings.json
# do not commit .env files or any files that end with `.env` # do not commit .env files or any files that end with `.env`
*.env *.env
@ -37,3 +34,8 @@ packages/**/e2e/**/fixtures/**/.astro/
packages/**/e2e/**/fixtures/**/env.d.ts packages/**/e2e/**/fixtures/**/env.d.ts
examples/**/.astro/ examples/**/.astro/
examples/**/env.d.ts examples/**/env.d.ts
# make it easy for people to add project-specific Astro settings that they don't
# want to share with others (see
# https://github.com/withastro/astro/pull/11759#discussion_r1721444711)
*.code-workspace

View file

@ -3,7 +3,8 @@
"astro-build.astro-vscode", "astro-build.astro-vscode",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"editorconfig.editorconfig", "editorconfig.editorconfig",
"dbaeumer.vscode-eslint" "dbaeumer.vscode-eslint",
"biomejs.biome"
], ],
"unwantedRecommendations": [] "unwantedRecommendations": []
} }

17
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,17 @@
{
"[json]": {
"editor.defaultFormatter": "biomejs.biome",
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome",
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome",
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome",
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome",
}
}