From 3b0030e82ba6da09fe55643a288a56868525f2e1 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 17 Jan 2023 14:42:47 +0900 Subject: [PATCH] Enable trim_trailing_whitespace in .editorconfig and add exceptions for more file types --- .editorconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index d433b6938..3a0b56850 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,12 +1,15 @@ root = true [*] -end_of_line = lf charset = utf-8 -trim_trailing_whitespace = false +end_of_line = lf +trim_trailing_whitespace = true insert_final_newline = true indent_style = tab +[*.md] +trim_trailing_whitespace = false + [*.py] indent_style = space indent_size = 4 @@ -14,3 +17,7 @@ indent_size = 4 [*.{json,yml,md}] indent_style = space indent_size = 2 + +[*.{jsx,tsx,svelte,vue}] +indent_style = space +indent_size = 2