From fcee0c532653ed0aea90c582af948e501f9c3c58 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 30 Jul 2026 18:55:05 +0300 Subject: [PATCH] chore: add .editorconfig for consistent formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chore: add .editorconfig for consistent formatting Add a standard root .editorconfig to open-gateway (github.com/hasna/gateway): root=true, UTF-8, LF line endings, insert a final newline, trim trailing whitespace, 2-space indent for JS/TS/JSON/YAML/MD (preserve trailing whitespace for *.md). Match the repo's prevailing existing style. Do NOT reformat existing files or change product code. Scope: the .editorconfig file only. Open a PR against the d VERIFIED 2026-07-29 against this repository's HEAD via the GitHub contents API: there is NO .editorconfig in the repo, so this is still needed. Add the root .editorconfig ONLY. Do NOT reformat any existing file and do NOT touch product code — the diff should be exactly one new file. Before writing it, inspect the repo's prevailing style (indent width actually used in src/, whether files end with a trailing newline) so the file describes what the repo already does instead of imposing a new one. Acceptance: `bun install` succeeds, `bun run typecheck` (if the repo has one) and `bun test` are still green, and `git diff --stat` against the base shows only .editorconfig. No network, no credentials needed. X-Factory-Run: run_844155ce0d5c X-Factory-Task: 48537225-725e-4a75-8bc4-48d19e300a65 --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..bc9662e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{js,jsx,ts,tsx,json,yml,yaml,md}] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false