From e16a7abf59e3f1959d01a0c73c691d4a6ffd5e0c Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Wed, 23 Aug 2023 08:10:14 -0500 Subject: Do not use off-spec value for end_of_line The [EditorConfig specification](https://spec.editorconfig.org/#supported-pairs) does not support "auto" as a value for "end_of_line". EditorConfig implementations which adhere to the specification (such as Neovim) will either ignore this value or, worse, show a warning or error to the user. Simply omitting `end_of_line` will use the default end of line value for the platform. Git (and other source control tools) can handle translating end of line characters between Windows and Unix platforms. The `end_of_line` option is there _only_ when you want to maintain a strict end of line character *across* platforms. --- .editorconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index e432c7eb..9ae4af12 100644 --- a/.editorconfig +++ b/.editorconfig @@ -18,10 +18,6 @@ continuation_indent = 4 # this option decides when to chopdown the code max_line_length = 120 -# optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf -# in neovim the value 'auto' is not a valid option, please use 'unset' -end_of_line = auto - #optional keep/never/always/smart trailing_table_separator = keep -- cgit v1.2.3