From ff05997fb3b956df05d9f89b34f95cc97775a615 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 29 Jan 2023 21:14:55 -0700 Subject: Add a .editorconfig file --- .editorconfig | 27 +++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..85ac8bf --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.go] +indent_style = tab + +[{go.mod,go.sum}] +indent_style = tab + +[Makefile] +; If somehow this gets set to not-tab, then the resulting Makefile +; won't work. +indent_style = tab + +[*.md] +; Emacs markdown-mode gets mixed tabs/spaces wrong, and so I have zero +; faith that any other tool gets it right. +indent_style = space + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/README.md b/README.md index 955258c..fcb46fa 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ common use of it will be ```go lowmemjson.NewEncoder(&lowmemjson.ReEncoder{ - Out: out, + Out: out, // settings here }).Encode(val) ``` -- cgit v1.1-4-g5e80