From: Thanh Ha Date: Sat, 6 Jun 2020 13:32:36 +0000 (-0400) Subject: Add .editorconfig file X-Git-Tag: v0.55.0~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=1bebe2af0f9dbe2db7fa1a22091144a0076b3c5f;hp=3885b944225b4de01cbdf24a88ab103de2841ffe;p=releng%2Fglobal-jjb.git Add .editorconfig file EditorConfig is a universal editor configuration file supported by many IDEs and Editors (although some might require installing a plugin) to share consistent editor configuration with developers using different editors. This also updates the README.md file to remove the single item bullet list as that was causing prettier to reformat the bullet item to insert extra spacing between the '-' and first word in the list. Ref: https://editorconfig.org/ Change-Id: I22605008837c567d9f6a62abfc85a195acc708c6 Signed-off-by: Thanh Ha --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..1b9c2ba0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,24 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space + +[*.json] +indent_size = 2 + +[*.rst] +indent_size = 4 + +[*.md] +indent_size = 4 +max_line_length = 80 + +[*.sh] +indent_size = 4 +max_line_length = 80 + +[*.yaml] +indent_size = 2 diff --git a/README.md b/README.md index 7531926c..e318c045 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ managed Jenkins instance, there are other jobs defined which may be helpful to projects that use the same build technology. The intention is to help projects save time from having to define their own job templates. -- Documentation +Documentation