mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-04 16:49:22 +01:00
70 lines
1.9 KiB
INI
70 lines
1.9 KiB
INI
# Note: I use this file as ~/.editorconfig when something doesn't specify to
|
|
# be root before reaching ~, so this contains files not seen in this repo
|
|
root = true
|
|
|
|
# Defaults
|
|
[*]
|
|
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
|
# Linux line endings, this repo/file is unlikely to be used in Windows
|
|
end_of_line = lf
|
|
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
|
|
# Opinionated affecting only display, better to not set
|
|
#tab_width =
|
|
|
|
# *nix, just in case
|
|
[*.{bash,sh}]
|
|
end_of_line = lf
|
|
|
|
# Crystal https://crystal-lang.org/reference/1.7/conventions/coding_style.html#indentation
|
|
[*.cr]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
# Markdown apparently allows linebreaks by two trailing spaces, while I
|
|
# never seem to do that, maybe I should accept it
|
|
[*.{markdown,md}]
|
|
trim_trailing_whitespace = false
|
|
|
|
# Nim https://nim-lang.org/docs/nep1.html#introduction-spacing-and-whitespace-conventions
|
|
[*.nim]
|
|
indent_style = space
|
|
indent_size = 2
|
|
max_line_length = 80
|
|
|
|
# Python https://peps.python.org/pep-0008/#indentation
|
|
[*.py]
|
|
indent_style = space
|
|
indent_size = 4
|
|
max_line_length = 79
|
|
|
|
# Ruby
|
|
#[*.rb]
|
|
# Unofficial Ruby Style guide says two spaces, but Wikipedia says it doesn't
|
|
# matter so I am going accessibility first and having this commented
|
|
# https://rubystyle.guide/#spaces-indentation
|
|
#indent_style = space
|
|
#indent_size = 2
|
|
|
|
# TAB Separated Values
|
|
[*.{tsv,tab}]
|
|
indent_style = tab
|
|
indent_size = tab
|
|
# empty last columns/fields
|
|
trim_trailing_whitespace = false
|
|
|
|
# Windows line-endings for Windows
|
|
[*.{reg,bat,ahk}]
|
|
end_of_line = crlf
|
|
|
|
# YAML requires spaces. The GitHub citation files look YAML to me.
|
|
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files
|
|
[*.{cff,yaml,yml}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|