Update VSCode settings: Configure ESLint with flat config, set working directories for apps and packages, enable format on save, and specify default formatters for TypeScript, JSONC, and Svelte files.

This commit is contained in:
2026-01-08 11:21:30 -03:00
parent 0fbd56d39e
commit 91925a9dea
6 changed files with 490 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
---
globs: src/lib/server/db/schema.ts
description: Fluxo de migrações ao editar o schema do banco de dados
---
## Fluxo obrigatório ao alterar [schema.ts](mdc:src/lib/server/db/schema.ts)
Sempre que realizar edits em `src/lib/server/db/schema.ts`, execute este fluxo de migrações:
1. Empurrar alterações usando uma base de teste local (porta 5433):
```bash
DATABASE_URL=postgres://postgres:postgres@localhost:5433/saas_test_db bun run drizzle-kit push
```
2. Sincronizar a base padrão do projeto:
```bash
bun run db:push
```
3. Aviso para commits na branch `main`:
Antes de abrir PR/commit para `main`, gere os artefatos do Drizzle:
```bash
bun run db:generate
```