From 657fb233f6c9b72c5b44903999d81ba08bfa7259 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Fri, 20 Sep 2024 19:45:56 +0200 Subject: [PATCH 1/2] `.editorconfig`: fix inline comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inline comments are no longer valid with current parsers, see ¹. Emacs 29.4 shows an error, and can’t parse the file. ¹: https://spec.editorconfig.org/#no-inline-comments --- .editorconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 3a537d01b284..a037622bfdce 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,7 +11,8 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -[{*.yaml,*.yml}] # To match GitHub Actions formatting + # To match GitHub Actions formatting +[{*.yaml,*.yml}] indent_size = 2 [*.md] From 9b53d066e153e50b2655ed192d3d0bcc69d8cd9a Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Fri, 20 Sep 2024 19:50:40 +0200 Subject: [PATCH 2/2] `.editorconfig`: simplify section name for yaml Following current best practices. --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index a037622bfdce..692a84da6109 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ trim_trailing_whitespace = true insert_final_newline = true # To match GitHub Actions formatting -[{*.yaml,*.yml}] +[*.{yaml,yml}] indent_size = 2 [*.md]