Skip to content

Commit e16a7ab

Browse files
authored
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.
1 parent 6c93484 commit e16a7ab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ continuation_indent = 4
1818
# this option decides when to chopdown the code
1919
max_line_length = 120
2020

21-
# optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf
22-
# in neovim the value 'auto' is not a valid option, please use 'unset'
23-
end_of_line = auto
24-
2521
#optional keep/never/always/smart
2622
trailing_table_separator = keep
2723

0 commit comments

Comments
 (0)