Commit Graph

2 Commits

Author SHA1 Message Date
Cody Allen
4584e1f883
Don't limit max line length on .u scratch files
The recently added `.editorconfig` sets a max line length of 120 characters for all file types. I found this to be
pretty frustrating when writing Unison scratch files. While writing Unison code my editor would seemingly randomly
create a new line, generating invalid Unison code. This came up more often when writing `Doc` values, since I tend to
write longer lines in prose than in code.

The formatting in scratch files is ephemeral, so I don't think that there is any good reason to force a max line length
on it.
2024-07-22 10:11:10 -04:00
Greg Pfeil
efcff6e076
Add an EditorConfig config
https://editorconfig.org/

This provides limited editor-agnostic style information.

The only one I care about here is `max_line_length`, since Ormolu doesn’t manage
that. It sets up my editor so that comments wrap at the expected place, and
gives me a hint when expressions should be split.

The other values just seem like reasonable ones, but they can also be
removed (and/or customized for particular file types).
2024-05-28 17:17:22 -06:00