diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..41eb72a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +# Future: https://github.com/editorconfig/editorconfig/issues/89 +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +# Accessibility reasons. Vim: :%retab! (note also :set ts=4) +indent_style = tab +indent_size = tab +#tab_width = diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9475bd8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Line ending normalisatsion +* text=auto + +# bash scripts are most likely ran on Linux so they have lf endings +*.bash text eol=lf diff --git a/bash/.editorconfig b/bash/.editorconfig new file mode 100644 index 0000000..ab443df --- /dev/null +++ b/bash/.editorconfig @@ -0,0 +1,4 @@ +root = false + +[*] +end_of_line = lf diff --git a/bash/.gitattributes b/bash/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/bash/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/python/.editorconfig b/python/.editorconfig new file mode 100644 index 0000000..df12f8c --- /dev/null +++ b/python/.editorconfig @@ -0,0 +1,6 @@ +root = false + +[*] +# https://peps.python.org/pep-0008/#indentation +indent_style = space +indent_size = 4 diff --git a/ruby/.editorconfig b/ruby/.editorconfig new file mode 100644 index 0000000..24e9bdd --- /dev/null +++ b/ruby/.editorconfig @@ -0,0 +1,9 @@ +root = false + +[*] +# Unofficial Ruby Style guide says two spaces, but Wikipedia says it doesn't +# matter so I am going accessibility first and having this commented +# which will lead editors looking at ../.editorconfig +# https://rubystyle.guide/#spaces-indentation +#indent_style = space +#indent_size = 2