Skip to content

Root .editorconfig so whitespace conventions are declared, not inferred [find-inspiration:editorconfig] #38

Description

@nonreagent

Kind: leaf
Effort: S · Risk: low
Source: webpro/dotfiles (run 2026-08-22)
Decision: adopt

Problem

Every editor and agent guesses this repo's indentation, and they guess differently.

Current state (this repo)

No .editorconfig. deploy.sh is 4-space, the Makefile is tabs, JSON and YAML are 2-space, and shell rc files are mixed. Nothing declares any of it.

Their approach

Root .editorconfig with root = true: utf-8, lf endings, final newline, trimmed trailing whitespace, 2-space indent.

Difference that matters

Cheapest possible way to stop whitespace-only diffs, and it is machine-readable by the agent harnesses this repo exists to configure.

Translation into this repo

Copy the shape but not the values: a blanket indent_size = 2 would fight deploy.sh's 4-space bodies and break the Makefile. Scope per glob — [*] for charset/eol/final-newline/trailing-whitespace only, [*.{json,yml,yaml,md}] 2-space, [*.sh] 4-space, [Makefile] tabs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    adoptDecided: adopt into this repofind-inspirationIdea triaged via the find-inspiration skill

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions