ajustes
This commit is contained in:
parent
0dc2d7a0df
commit
24561a6199
6 changed files with 157 additions and 4 deletions
12
README.md
12
README.md
|
|
@ -8,6 +8,8 @@ Este guia mostra como configurar o [BiomeJS](https://biomejs.dev) para formatar
|
|||
|
||||
Certifique-se de que o pacote `p-comuns` (ou outro com a configuração compartilhada) esteja disponível no seu projeto. Ele deve conter o arquivo `Documentos/biome.json`.
|
||||
|
||||
pnpm up p-comuns
|
||||
|
||||
---
|
||||
|
||||
### 2. Instalar o Biome com `pnpm`
|
||||
|
|
@ -45,7 +47,7 @@ Inclua o comando abaixo em `"scripts"`:
|
|||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"biome": "pnpm exec biome check --write"
|
||||
"biome": "pnpm exec biome check --write",
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -73,6 +75,14 @@ Se quiser aplicar o Biome a todo o projeto (não só `src/`), altere o include:
|
|||
adicionar em .vscode/settings.json
|
||||
|
||||
{
|
||||
"editor.defaultFormatter": "biomejs.biome",
|
||||
"[javascript]": { "editor.defaultFormatter": "biomejs.biome" },
|
||||
"[javascriptreact]": { "editor.defaultFormatter": "biomejs.biome" },
|
||||
"[typescript]": { "editor.defaultFormatter": "biomejs.biome" },
|
||||
"[typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" },
|
||||
"[json]": { "editor.defaultFormatter": "biomejs.biome" },
|
||||
"[jsonc]": { "editor.defaultFormatter": "biomejs.biome" },
|
||||
"[vue]": {"editor.defaultFormatter": "octref.vetur"},
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports.biome": "always",
|
||||
"source.fixAll.biome": "always"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue