From e3c83e42d8bdaf11763298cc21c26d0ea2621dc0 Mon Sep 17 00:00:00 2001 From: Sergei Shulepov Date: Wed, 12 Aug 2020 15:55:32 +0200 Subject: [PATCH] Update .editorconfig to what we have in practice (#1545) While editing the impl guide markdowns I tried to be inline with what seemingly more common way to indent them: spaces. However, despite that I changed it kept reseting. Turned out the culprit is the .editorconfig file. This commit addresses this issue. I didn't try to deduplicate the rules since I found that the formal specification is a bit ambigious and it is not a big deal anyway. --- polkadot/.editorconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/polkadot/.editorconfig b/polkadot/.editorconfig index dda39da09e..6b736d884f 100644 --- a/polkadot/.editorconfig +++ b/polkadot/.editorconfig @@ -1,12 +1,13 @@ root = true -[*] + +[*.rs] indent_style=tab indent_size=tab tab_width=4 +max_line_length=120 end_of_line=lf charset=utf-8 trim_trailing_whitespace=true -max_line_length=120 insert_final_newline=true [*.yml] @@ -14,6 +15,9 @@ indent_style=space indent_size=2 tab_width=8 end_of_line=lf +charset=utf-8 +trim_trailing_whitespace=true +insert_final_newline=true [*.sh] indent_style=space