Skip to content

Commit a5cd828

Browse files
authored
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 (<br/>). 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.
1 parent dfd59d9 commit a5cd828

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.editorconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ trim_trailing_whitespace = true
88
[*.md]
99
indent_size = 2
1010
indent_style = space
11-
max_line_length = 100 # Please keep this in sync with bin/lesson_check.py!
12-
trim_trailing_whitespace = false # keep trailing spaces in markdown - 2+ spaces are translated to a hard break (<br/>)
11+
12+
# Please keep this in sync with bin/lesson_check.py!
13+
max_line_length = 100
14+
15+
# keep trailing spaces in markdown - 2+ spaces are translated to a hard break (<br/>)
16+
trim_trailing_whitespace = false
1317

1418
[*.r]
1519
max_line_length = 80

0 commit comments

Comments
 (0)