aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2024-03-15 21:02:47 +0100
committerLouis Pilfold <louis@lpil.uk>2024-03-18 13:48:51 +0000
commit256139ded2258496f7f4858a9647a44191c221ef (patch)
treebdefc1091dd2bae212dab48ba93caba5c887db3d
parent93d4ab425c568580359baa33316082385d67e790 (diff)
downloadgleam_stdlib-256139ded2258496f7f4858a9647a44191c221ef.tar.gz
gleam_stdlib-256139ded2258496f7f4858a9647a44191c221ef.zip
add editorconfig
-rw-r--r--.editorconfig29
1 files changed, 29 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..bb3bc05
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,29 @@
+# EditorConfig helps developers define and maintain consistent
+# coding styles between different editors and IDEs
+# editorconfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Matches multiple files with brace expansion notation
+# Set default charset
+[*.{gleam, erl, hrl, ex, exs, mjs, js, ts, toml, yaml, yml, json, jsonc, md}]
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = space
+indent_size = 2
+
+[*.{gleam, erl, hrl, ex, exs, mjs, js, ts}]
+max_line_length = 80
+
+[*.md]
+# double whitespace at end of line
+# denotes a line break in Markdown
+trim_trailing_whitespace = false
+max_line_length = off
+
+[Makefile]
+indent_style = tab
+indent_size = 4