-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path.editorconfig
More file actions
97 lines (77 loc) · 1.74 KB
/
.editorconfig
File metadata and controls
97 lines (77 loc) · 1.74 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Default settings for all files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
# Python files
[*.py]
indent_size = 4
max_line_length = 88
# Python stub files
[*.pyi]
indent_size = 4
max_line_length = 88
# Configuration files (YAML, TOML, JSON)
[*.{yaml,yml}]
indent_size = 2
[*.toml]
indent_size = 4
[*.json]
indent_size = 2
# Docker files
[Containerfile]
indent_size = 8
[compose.yaml]
indent_size = 2
# Shell scripts
# shfmt configuration matches pre-commit hook: -ln bash -i 2 -ci -bn -sr -kp -s
[*.{sh,bash,zsh,fish}]
indent_style = space
indent_size = 2
# shfmt-specific properties (shfmt 3.8.0+)
shell_variant = bash
binary_next_line = true
switch_case_indent = true
space_redirects = true
keep_padding = true
# Nix files
[*.nix]
indent_size = 2
# Web files (if any)
[*.{html,css,js,ts,jsx,tsx}]
indent_size = 2
# Markdown files
[*.md]
indent_size = 2
trim_trailing_whitespace = false
# Environment files
[.env*]
indent_size = 4
# Git files
[.git*]
indent_size = 4
# Lock files (read-only, preserve formatting)
[{uv.lock,package-lock.json,yarn.lock,Pipfile.lock}]
insert_final_newline = false
trim_trailing_whitespace = false
# Makefile (requires tabs)
[{Makefile,makefile,*.mk}]
indent_style = tab
indent_size = 4
# Batch files (Windows)
[*.{bat,cmd}]
end_of_line = crlf
# Archive directory (preserve original formatting)
[.archive/**]
insert_final_newline = false
trim_trailing_whitespace = false
# Generated/cache directories (ignore)
[{__pycache__,*.pyc,.mypy_cache,.pytest_cache,.ruff_cache,node_modules}/**]
insert_final_newline = false
trim_trailing_whitespace = false