From ac2209f578275a0c4decb8eb56d2b1e8aa7d7856 Mon Sep 17 00:00:00 2001 From: Leonardo Lopes Date: Thu, 16 Apr 2026 10:57:09 -0300 Subject: [PATCH 1/2] chore: unify editorconfig/prettier formatting --- .editorconfig | 13 +++++++++++++ .gitignore | 1 - .vscode/extensions.json | 6 ++++++ .vscode/settings.json | 9 +++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..16e481d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 100 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 93f0dff..096faac 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ dist .env.* *.log .DS_Store -.vscode/ .idea/ coverage/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a1ba4ba --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "editorconfig.editorconfig", + "esbenp.prettier-vscode" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7dc9573 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.insertSpaces": true, + "editor.tabSize": 2, + "files.eol": "\n", + "prettier.configPath": ".prettierrc", + "prettier.useEditorConfig": true +} \ No newline at end of file From 32acd9bb30c0c27002bfca43efdfc4e55fedaf77 Mon Sep 17 00:00:00 2001 From: Leonardo Lopes Date: Thu, 16 Apr 2026 11:02:36 -0300 Subject: [PATCH 2/2] docs: recommend installing workspace extensions --- CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 111ac0d..e087cf7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,6 +61,13 @@ O script `scripts/validate-wordlists.ts` verifica: O CI roda isso automaticamente em todo PR. +## Setup do editor (VS Code / Cursor) + +Para manter a formatação consistente (Prettier/ESLint) e reduzir ruído no diff, instale as **extensões recomendadas do workspace**: + +- Ao abrir o projeto, aceite o prompt de **instalar as extensões recomendadas**. +- Alternativamente, abra a aba de Extensões e procure por **Recomendadas** (workspace) ou use o comando **“Extensions: Show Recommended Extensions”**. + ## Checklist do PR - [ ] Palavra em lowercase, sem acentos