Skip to content

chore: add .editorconfig for consistent editor defaults - #72

Closed
ZacxDev wants to merge 1 commit into
mainfrom
add-editorconfig
Closed

chore: add .editorconfig for consistent editor defaults#72
ZacxDev wants to merge 1 commit into
mainfrom
add-editorconfig

Conversation

@ZacxDev

@ZacxDev ZacxDev commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Adds a root .editorconfig with conservative defaults suitable for a dotfiles repo:

  • root = true — stop at repo root, don't merge parent configs
  • UTF-8, LF line endings
  • Final newline, trim trailing whitespace
  • Space-based 2-space indentation (shell/nix friendly)

No existing files were changed. Fully reversible.

Sets root=true with UTF-8, LF line endings, final newlines,
trimmed trailing whitespace, and 2-space indentation.
Conservative, broadly-safe defaults for a dotfiles repo.
@ZacxDev

ZacxDev commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favour of #55, which adds the same file with per-filetype rules.

Measured against the repo before choosing: Python is 4-space in 36/36 sampled tracked files, shell is 2-space 29:5, nix 2-space 16:4. #55 specifies exactly that ([*.py] indent_size = 4, sh/nix at 2). This PR's flat indent_size = 2 would contradict every Python file in the repo, so it would be an editor fighting the code rather than describing it.

@ZacxDev ZacxDev closed this Aug 2, 2026
@ZacxDev
ZacxDev deleted the add-editorconfig branch August 2, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant