diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-29 21:14:55 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-30 13:49:20 -0700 |
commit | ff05997fb3b956df05d9f89b34f95cc97775a615 (patch) | |
tree | 9c568983d239215a86e60a5aa77503c22d1a0e33 | |
parent | e87c9b4d8b629f5df19e9dd182162889d279b4f2 (diff) |
Add a .editorconfig file
-rw-r--r-- | .editorconfig | 27 | ||||
-rw-r--r-- | README.md | 2 |
2 files changed, 28 insertions, 1 deletions
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 @@ -123,7 +123,7 @@ common use of it will be ```go lowmemjson.NewEncoder(&lowmemjson.ReEncoder{ - Out: out, + Out: out, // settings here }).Encode(val) ``` |