From a5cd8280f455ed61c8a09914dc2a01501e895e83 Mon Sep 17 00:00:00 2001 From: Paddy McCann Date: Wed, 2 Oct 2024 09:14:04 +0100 Subject: [PATCH] Improves .editorconfig compatibility (#817) * Improves .editorconfig compatibility My text editor (NeoVim) reports the following error when editing a workshop template: ``` editorconfig: invalid value for option trim_trailing_whitespace: false # keep trailing spaces in markdown - 2+ spaces are translated to a hard break (
). trim_trailing_whitespace must be either "true" or "false" editorconfig: invalid value for option max_line_length: 100 # please keep this in sync with bin/lesson_check.py!. max_line_length must be a number or "off" ``` As per https://editorconfig.org: > Comments should go on their own lines. This change brings .editorconfig in line with the file format as documented. * Leading .editorconfig comments Places .editorconfig comments before the corresponding commands rather than after. --- .editorconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 5bf4860b..65ecc3bf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,8 +8,12 @@ trim_trailing_whitespace = true [*.md] indent_size = 2 indent_style = space -max_line_length = 100 # Please keep this in sync with bin/lesson_check.py! -trim_trailing_whitespace = false # keep trailing spaces in markdown - 2+ spaces are translated to a hard break (
) + +# Please keep this in sync with bin/lesson_check.py! +max_line_length = 100 + +# keep trailing spaces in markdown - 2+ spaces are translated to a hard break (
) +trim_trailing_whitespace = false [*.r] max_line_length = 80