👁️🗨️ Conventions on indentation and ending new lines aren't consistent across and sometimes within a project. This issue hopes to discuss tooling we might use to improve this!
We might find this useful to avoid extraneous changes from appearing in PRs due to editor configurations.
Proposal
.editorconfig: https://editorconfig.org. An editor independent and configured formatter. Seems useful to guarantee lines end as expected and that indentation of bash files (for example) matches. IMHO language specific formatters should still be preferred when available - biome or ruff?
To start I think a small set of checks can be useful:
[*]
end_of_line = lf
insert_final_newline = true
[*.json]
indent_style = space
indent_size = 2
[*.sh]
indent_style = space
indent_size = 4
👁️🗨️ Conventions on indentation and ending new lines aren't consistent across and sometimes within a project. This issue hopes to discuss tooling we might use to improve this!
We might find this useful to avoid extraneous changes from appearing in PRs due to editor configurations.
Proposal
.editorconfig: https://editorconfig.org. An editor independent and configured formatter. Seems useful to guarantee lines end as expected and that indentation of bash files (for example) matches. IMHO language specific formatters should still be preferred when available -biomeorruff?neovimincludes this as a default.To start I think a small set of checks can be useful: