From 1a18f287ac0e8b55fb11779866413ddad5219558 Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Wed, 27 May 2020 22:27:01 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Update=20editorconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index e9582ee..59ad464 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,8 +9,30 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true +[script/*] +indent_size = 2 + +[*.{yml,yaml}] +indent_size = 2 + +# Use 2 spaces for Ruby files +[{Podfile,Rakefile,*.{rb,podspec}}] +indent_size = 2 +indent_style = space +max_line_length = 80 + +# Use tabs for property lists +[*.plist] +indent_style = tab + +# JSON files contain newlines inconsistently +[*.json] +insert_final_newline = ignore + +# Makefiles always use tabs for indentation +[Makefile] +indent_style = tab + +# Trailing spaces have meaning in Markdown [*.md] trim_trailing_whitespace = false - -[{script/*,*.rb,*.yml}] -indent_size = 2