Debian Codegraph @

.editorconfig

raw
1 # EditorConfig (is awesome!; ref: http://EditorConfig.org; v2022.02.11 [rivy])
2 # spell-checker:ignore akefile shellcheck vcproj
3
4 # * top-most EditorConfig file
5 root = true
6
7 [*]
8 # default ~ utf-8, unix-style newlines with a newline ending every file, 4 space indentation
9 charset = utf-8
10 end_of_line = lf
11 indent_size = 4
12 indent_style = space
13 insert_final_newline = true
14 max_line_length = 100
15 trim_trailing_whitespace = true
16
17 [{[Mm]akefile{,.*},*.{mak,mk,[Mm][Aa][Kk],[Mm][Kk]},[Gg][Nn][Uu]makefile}]
18 # makefiles ~ TAB-style indentation
19 indent_style = tab
20
21 [*.bash]
22 # `bash` shell scripts
23 indent_size = 4
24 indent_style = space
25 # * ref: <https://github.com/foxundermoon/vs-shell-format/blob/bc56a8e367b04bbf7d9947b767dc82516a6155b7/src/shFormat.ts>
26 # shell_variant = bash ## allow `shellcheck` to decide via script hash-bang/sha-bang line
27 switch_case_indent = true
28
29 [*.{bat,cmd,[Bb][Aa][Tt],[Cc][Mm][Dd]}]
30 # BAT/CMD ~ DOS/Win requires BAT/CMD files to have CRLF EOLNs
31 end_of_line = crlf
32
33 [*.{cjs,cjx,cts,ctx,js,jsx,mjs,mts,mtx,ts,tsx,json,jsonc}]
34 # js/ts/json ~ Prettier/XO-style == TAB indention + SPACE alignment
35 indent_size = 2
36 indent_style = tab
37
38 [*.go]
39 # go ~ TAB-style indentation (SPACE-style alignment); ref: <https://blog.golang.org/gofmt>@@<https://archive.is/wip/9B6FC>
40 indent_style = tab
41
42 [*.{markdown,md,mkd,[Mm][Dd],[Mm][Kk][Dd],[Mm][Dd][Oo][Ww][Nn],[Mm][Kk][Dd][Oo][Ww][Nn],[Mm][Aa][Rr][Kk][Dd][Oo][Ww][Nn]}]
43 # markdown
44 indent_size = 2
45 indent_style = space
46
47 [*.sh]
48 # POSIX shell scripts
49 indent_size = 4
50 indent_style = space
51 # * ref: <https://github.com/foxundermoon/vs-shell-format/blob/bc56a8e367b04bbf7d9947b767dc82516a6155b7/src/shFormat.ts>
52 # shell_variant = posix ## allow `shellcheck` to decide via script hash-bang/sha-bang line
53 switch_case_indent = true
54
55 [*.{sln,vc{,x}proj{,.*},[Ss][Ln][Nn],[Vv][Cc]{,[Xx]}[Pp][Rr][Oo][Jj]{,.*}}]
56 # MSVC sln/vcproj/vcxproj files, when used, will persistently revert to CRLF EOLNs and eat final EOLs
57 end_of_line = crlf
58 insert_final_newline = false
59
60 [*.toml]
61 indent_size = 2
62 indent_style = space
63
64 [*.{yaml,yml,[Yy][Mm][Ll],[Yy][Aa][Mm][Ll]}]
65 # YAML
66 indent_size = 2
67 indent_style = space