chore: add .editorconfig for consistent formatting - #7
Open
andrei-hasna wants to merge 1 commit into
Open
Conversation
chore: add .editorconfig for consistent formatting Add a standard root .editorconfig to open-models (github.com/hasna/models): 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 def 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_29689e4305e0 X-Factory-Task: 4d0be90d-a84e-4b93-85c4-f22a41b4480e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
chore: add .editorconfig for consistent formatting
Add a standard root .editorconfig to open-models (github.com/hasna/models): 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 def
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 installsucceeds,bun run typecheck(if the repo has one) andbun testare still green, andgit diff --statagainst the base shows only .editorconfig. No network, no credentials needed.Verification
Run
run_29689e4305e0· backendcodewith· task4d0be90d-a84e-4b93-85c4-f22a41b4480e🏭 Generated by @hasnaxyz/factory
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.