-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.editorconfig
More file actions
37 lines (28 loc) · 1.11 KB
/
.editorconfig
File metadata and controls
37 lines (28 loc) · 1.11 KB
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
# .editorconfig
# This file helps maintain consistent coding styles across different editors and IDEs.
# Most modern editors support EditorConfig natively or via plugins.
# Indicates this is the root EditorConfig file (don't look for config files in parent folders)
root = true
# Applies to all files
[*]
# Use spaces instead of tabs for indentation
indent_style = space
# Set indentation size to 2 spaces (common in JS, TS, and React projects)
indent_size = 2
# Use Unix-style line endings (LF). Avoids issues across OS (Windows uses CRLF)
end_of_line = lf
# Set character encoding to UTF-8
charset = utf-8
# Remove any whitespace characters at the end of lines
trim_trailing_whitespace = true
# Ensure every file ends with a newline (helps with diffs and POSIX compliance)
insert_final_newline = true
# Override settings for Markdown files
[*.md]
# Don't trim trailing whitespace in Markdown files
# Some markdown formatting (e.g. for line breaks) relies on trailing spaces
trim_trailing_whitespace = false
# Override settings for JSON files
[*.json]
# JSON should also use 2 spaces (enforced for readability)
indent_size = 2