2023-05-15 08:51:32 +08:00
|
|
|
# EditorConfig is awesome: https://EditorConfig.org
|
|
|
|
|
|
|
|
# top-most EditorConfig file
|
|
|
|
root = true
|
|
|
|
|
|
|
|
# Unix-style newlines with a newline ending every file
|
|
|
|
[*]
|
2025-04-29 18:04:33 +08:00
|
|
|
charset = utf-8
|
2023-05-15 08:51:32 +08:00
|
|
|
end_of_line = lf
|
|
|
|
insert_final_newline = true
|
2025-04-29 18:04:33 +08:00
|
|
|
trim_trailing_whitespace = true
|
|
|
|
|
|
|
|
[*.py]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
[*.{yml,yaml}]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|
|
|
|
|
|
|
|
[*.toml]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
# Markdown and MDX are whitespace sensitive languages.
|
|
|
|
# Do not remove trailing spaces.
|
|
|
|
[*.{md,mdx}]
|
|
|
|
trim_trailing_whitespace = false
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
# Matches multiple files with brace expansion notation
|
|
|
|
# Set default charset
|
|
|
|
[*.{js,tsx}]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|
|
|
|
|
2025-04-29 18:04:33 +08:00
|
|
|
# Matches the exact files package.json
|
|
|
|
[package.json]
|
2023-05-15 08:51:32 +08:00
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|