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:
parent
cf65476b27
commit
a3b9b91caf
3 changed files with 24 additions and 4 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -16,9 +16,6 @@ package-lock.json
|
|||
.eslintcache
|
||||
.pnpm-store
|
||||
|
||||
# ignore top-level vscode settings
|
||||
/.vscode/settings.json
|
||||
|
||||
# do not commit .env files or any files that end with `.env`
|
||||
*.env
|
||||
|
||||
|
@ -37,3 +34,8 @@ packages/**/e2e/**/fixtures/**/.astro/
|
|||
packages/**/e2e/**/fixtures/**/env.d.ts
|
||||
examples/**/.astro/
|
||||
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
|
||||
|
|
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
|
@ -3,7 +3,8 @@
|
|||
"astro-build.astro-vscode",
|
||||
"esbenp.prettier-vscode",
|
||||
"editorconfig.editorconfig",
|
||||
"dbaeumer.vscode-eslint"
|
||||
"dbaeumer.vscode-eslint",
|
||||
"biomejs.biome"
|
||||
],
|
||||
"unwantedRecommendations": []
|
||||
}
|
||||
|
|
17
.vscode/settings.json
vendored
Normal file
17
.vscode/settings.json
vendored
Normal 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",
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue