summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-02-14 22:19:20 +0900
committerdearblue <[email protected]>2021-02-14 22:19:20 +0900
commit9b38dddc61d6b5950cb96e6b5e2d40954db29670 (patch)
tree2398aec7df6027f0ee97ca540369c7efacff325b
parent3217febfe9e850e6800f5c95223a04817756e469 (diff)
downloadmruby-9b38dddc61d6b5950cb96e6b5e2d40954db29670.tar.gz
mruby-9b38dddc61d6b5950cb96e6b5e2d40954db29670.zip
Introduce EditorConfig [skip ci]
-rw-r--r--.editorconfig43
1 files changed, 43 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..705b1f022
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,43 @@
+# About this file, see:
+# Website: https://editorconfig.org/
+# For Emacs users: https://github.com/editorconfig/editorconfig-emacs
+# For Vim users: https://github.com/editorconfig/editorconfig-vim
+
+root = true
+
+[*]
+indent_style = tab
+indent_size = 8
+tab_width = 8
+end_of_line = lf
+charset = utf-8
+insert_final_newline = true
+
+[{Makefile,Makefile.*,makefile,*.mk}]
+trim_trailing_whitespace = true
+#max_line_length = 80
+
+[*.{c,cc,C,cxx,cpp,h,hh,H,hxx,hpp,inc,y}]
+indent_style = space
+indent_size = 2
+trim_trailing_whitespace = true
+#max_line_length = 120
+
+[{*.rb,Rakefile,rakefile,*.rake,*.gemspec,*.gembox}]
+indent_style = space
+indent_size = 2
+trim_trailing_whitespace = true
+#max_line_length = 120
+
+[*.bat]
+end_of_line = crlf
+charset = latin1
+#max_line_length = 80
+
+[*.{yaml,yml}]
+indent_style = space
+indent_size = 2
+
+[*.md]
+indent_style = space
+indent_size = 2