1+ # https://editorconfig.org
2+ # Keep in sync with .gitattributes (LF), run-format.ps1 (UTF-8 / LF),
3+ # PSScriptAnalyzerSettings.psd1 (no BOM required), .vscode/settings.json,
4+ # and .markdownlint.json (MD013 line_length 200).
5+
16root = true
27
38[* ]
49charset = utf-8
5- end_of_line = crlf
10+ end_of_line = lf
611insert_final_newline = true
712trim_trailing_whitespace = true
8-
9- [* .ps1 ]
1013indent_style = space
1114indent_size = 4
1215
13- [* .psd1 ]
16+ # PowerShell — 4-space indent (VS Code editor.tabSize + Invoke-Formatter)
17+ [* .{ps1,psm1,psd1,ps1xml,pssc,psrc} ]
1418indent_style = space
1519indent_size = 4
1620
21+ # YAML / Taskfile / GitHub Actions — 2-space indent
22+ [* .{yml,yaml} ]
23+ indent_style = space
24+ indent_size = 2
25+
26+ [{Taskfile.yml,Taskfile.yaml,.github/workflows/** } ]
27+ indent_style = space
28+ indent_size = 2
29+
30+ # JSON (package.json, cspell, VS Code) — 2-space indent
31+ [* .json ]
32+ indent_style = space
33+ indent_size = 2
34+
35+ [{.vscode/** ,.markdownlint.json,cspell.json,cspell* .json} ]
36+ indent_style = space
37+ indent_size = 2
38+
39+ # Markdown — MD013 line_length 200; keep trailing spaces (hard line breaks)
1740[* .md ]
41+ indent_style = space
42+ indent_size = 2
1843trim_trailing_whitespace = false
44+ max_line_length = 200
1945
20- [* .yml ]
46+ # Just recipes use 4-space bodies (see justfile)
47+ [{justfile,Justfile,* .just} ]
48+ indent_style = space
49+ indent_size = 4
50+
51+ # Makefiles require tabs
52+ [{Makefile,makefile,* .mk} ]
53+ indent_style = tab
54+
55+ # TOML / INI-style configs
56+ [* .{toml,ini} ]
2157indent_style = space
2258indent_size = 2
2359
24- [* .yaml ]
60+ # Shell helpers shipped beside PowerShell tooling
61+ [* .{sh,bash} ]
2562indent_style = space
26- indent_size = 2
63+ indent_size = 2
64+ end_of_line = lf
65+
66+ # Lockfiles and generated blobs — do not reformat on save
67+ [{pnpm-lock.yaml,package-lock.json,yarn.lock,** /docs/api/** ,** /docs/test-verification-reports/** } ]
68+ indent_style = unset
69+ indent_size = unset
70+ trim_trailing_whitespace = unset
71+ insert_final_newline = unset
72+ max_line_length = unset
73+
74+ [* .{svg,png,jpg,jpeg,gif,webp,ico,woff,woff2,ttf,eot} ]
75+ charset = unset
76+ end_of_line = unset
77+ insert_final_newline = unset
78+ trim_trailing_whitespace = unset
79+ indent_style = unset
80+ indent_size = unset
0 commit comments