From ca4a5e1f20551bf8069095410ea2c9db1aab5a1e Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 26 Jul 2024 00:33:32 +0200 Subject: [PATCH] CONTRIBUTING.md: Editorconfig instead of manual description --- CONTRIBUTING.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 44d88a165305..67972d21fd12 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -557,9 +557,7 @@ Names of files and directories should be in lowercase, with dashes between words ### Syntax -- Use 2 spaces of indentation per indentation level in Nix expressions, 4 spaces in shell scripts. - -- Do not use tab characters, i.e. configure your editor to use soft tabs. For instance, use `(setq-default indent-tabs-mode nil)` in Emacs. Everybody has different tab settings so it’s asking for trouble. +- Set up [editorconfig](https://editorconfig.org/) for your editor, such that [the settings](./.editorconfig) are automatically applied. - Use `lowerCamelCase` for variable names, not `UpperCamelCase`. Note, this rule does not apply to package attribute names, which instead follow the rules in [package naming](./pkgs/README.md#package-naming).