generated from germanfrelo/template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.editorconfig
37 lines (31 loc) · 1.46 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# NOTE:
# EditorConfig and Prettier share some options. To avoid conflicts between them, only configure these options in the .editorconfig file. Prettier will use them instead of its own defaults.
# Refs. https://prettier.io/docs/en/configuration#editorconfig and https://joepkockelkorn.com/blog/combining-gitattributes-editorconfig-and-prettier
# Stop the editor from looking for .editorconfig files in parent directories
root = true
# All files
[*]
charset = utf-8 # 1
end_of_line = lf # 2
insert_final_newline = true # 3
trim_trailing_whitespace = true # 4
indent_style = tab # 5
# Markdown
[*.md]
indent_style = space # 6
indent_size = 2 # 7
trim_trailing_whitespace = false # 8
# YAML
[*.{yaml,yml}] # 9
indent_style = space
indent_size = 2
# ---
# 1. https://www.w3.org/International/questions/qa-html-encoding-declarations
# 2. https://aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git
# 3. https://stackoverflow.com/q/729692/10015695
# 4. https://softwareengineering.stackexchange.com/q/121555
# 5. https://gist.github.com/germanfrelo/fc3ac17ff5bd78b7bf0786734f15d8b4
# 6. https://github.com/DavidAnson/markdownlint/blob/main/doc/md010.md
# 7. https://github.com/DavidAnson/markdownlint/blob/main/doc/md007.md
# 8. https://gist.github.com/germanfrelo/513086438cc38a6dadecb4ff49a46af4
# 9. https://localheinz.com/articles/2023/02/06/indenting-yaml-files