56 lines
1.5 KiB
INI
56 lines
1.5 KiB
INI
# EditorConfig is awesome: https://editorconfig.org
|
||
root = true
|
||
|
||
# -------------------------------------------------
|
||
# General settings – apply to all files
|
||
# -------------------------------------------------
|
||
[*]
|
||
charset = utf-8
|
||
end_of_line = lf
|
||
insert_final_newline = true
|
||
trim_trailing_whitespace = true
|
||
|
||
# -------------------------------------------------
|
||
# Markdown (*.md)
|
||
# -------------------------------------------------
|
||
[*.md]
|
||
max_line_length = off # Markdown lines can be long
|
||
trim_trailing_whitespace = false # Preserve intentional spaces
|
||
|
||
# -------------------------------------------------
|
||
# Go (*.go)
|
||
# -------------------------------------------------
|
||
[*.go]
|
||
indent_style = tab
|
||
indent_size = 4
|
||
trim_trailing_whitespace = true
|
||
max_line_length = 100
|
||
|
||
# -------------------------------------------------
|
||
# JavaScript & TypeScript (*.js, *.jsx, *.ts, *.tsx)
|
||
# -------------------------------------------------
|
||
[*.{js,jsx,ts,tsx}]
|
||
indent_style = space
|
||
indent_size = 2
|
||
insert_final_newline = true
|
||
trim_trailing_whitespace = true
|
||
max_line_length = 120
|
||
|
||
# -------------------------------------------------
|
||
# HTML (*.html, *.htm)
|
||
# -------------------------------------------------
|
||
[*.{html,htm}]
|
||
indent_style = space
|
||
indent_size = 2
|
||
max_line_length = 120
|
||
trim_trailing_whitespace = true
|
||
|
||
# -------------------------------------------------
|
||
# CSS & SCSS (*.css, *.scss)
|
||
# -------------------------------------------------
|
||
[*.{css,scss}]
|
||
indent_style = space
|
||
indent_size = 2
|
||
max_line_length = 120
|
||
trim_trailing_whitespace = true
|