From 4584e1f883d22621b1c7b3f7390f5161c6abe303 Mon Sep 17 00:00:00 2001 From: Cody Allen Date: Mon, 22 Jul 2024 10:11:10 -0400 Subject: [PATCH] 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. --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index 24503cfc21..ca6aaebbd5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,3 +9,6 @@ indent_style = space insert_final_newline = true max_line_length = 120 trim_trailing_whitespace = true + +[*.u] +max_line_length = off