From c9eef7d1935ee3957b0e3af8247994acb47e4009 Mon Sep 17 00:00:00 2001 From: Nicolas Sarlin Date: Thu, 9 Jan 2025 13:30:04 +0100 Subject: [PATCH] chore: enable space in editorconfig for more file types --- .editorconfig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9c92e8a82..f5ec3f57a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,8 +8,14 @@ root = true end_of_line = lf insert_final_newline = true -# 4 space indentation -[*.rs] +# 4 space indentation for rust and toml +[*.{rs,toml}] charset = utf-8 indent_style = space indent_size = 4 + +# 2 for c and js +[*.{js,json,c,h}] +charset = utf-8 +indent_style = space +indent_size = 2