2023-02-12 20:04:17 +01:00
|
|
|
# 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
|
2023-02-12 12:22:30 +01:00
|
|
|
root = true
|
|
|
|
|
2023-02-12 20:04:17 +01:00
|
|
|
# Defaults
|
2023-02-12 12:22:30 +01:00
|
|
|
[*]
|
|
|
|
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
2023-02-12 20:04:17 +01:00
|
|
|
# Linux line endings, this repo/file is unlikely to be used in Windows
|
2023-02-12 12:22:30 +01:00
|
|
|
end_of_line = lf
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
insert_final_newline = true
|
|
|
|
charset = utf-8
|
2023-02-12 13:19:08 +01:00
|
|
|
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
2023-02-12 12:22:30 +01:00
|
|
|
indent_style = tab
|
2023-02-12 14:52:08 +01:00
|
|
|
indent_size = tab
|
2023-02-12 20:04:17 +01:00
|
|
|
# Opinionated affecting only display, better to not set
|
2023-02-12 14:52:08 +01:00
|
|
|
#tab_width =
|
2023-02-12 12:22:30 +01:00
|
|
|
|
2023-02-12 20:04:17 +01:00
|
|
|
# Windows line-endings for Windows
|
2023-02-12 12:22:30 +01:00
|
|
|
[*.{reg,bat,ahk}]
|
|
|
|
end_of_line = crlf
|
2023-02-12 20:04:17 +01:00
|
|
|
|
|
|
|
# Let's ensure *nix is lf although it comes from defaults
|
|
|
|
# above
|
|
|
|
[*.{bash,sh}]
|
|
|
|
end_of_line = lf
|
|
|
|
|
|
|
|
# Python https://peps.python.org/pep-0008/#indentation
|
|
|
|
[*.py]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 4
|
|
|
|
|
|
|
|
# YAML requires spaces
|
|
|
|
[*.{yaml,yml}]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|
|
|
|
|
|
|
|
# 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
|