From d14885f96dab69526d398ec6b5c2aeded73e2dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 20 Oct 2024 22:52:16 +0200 Subject: [PATCH] Add .editorconfig This should ensure that all editors which support https://editorconfig.org/ use the correct indentation with spaces (not tabs) by default. This is hardly a full specification of our coding style, but it's a correct subset and better than nothing. Part-of: (cherry picked from commit 0ca156a2b69a8e8126532024c532d5b997c00691) --- .editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..c16d08a3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: 2024 Florian Müllner +# SPDX-License-Identifier: CC0-1.0 + +root = true + +[*] +charset = utf-8 +end_of_line = lf + +indent_style = space +trim_trailing_whitespace = true + +[*.js] +indent_size = 4 + +[meson.build] +indent_size = 2