Skip to content

Commit

Permalink
Don't limit max line length on .u scratch files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ceedubs committed Jul 22, 2024
1 parent 677266d commit 4584e1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ indent_style = space
insert_final_newline = true
max_line_length = 120
trim_trailing_whitespace = true

[*.u]
max_line_length = off

0 comments on commit 4584e1f

Please sign in to comment.