-
Notifications
You must be signed in to change notification settings - Fork 5
/
.editorconfig
69 lines (56 loc) · 2.32 KB
/
.editorconfig
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
# EditorConfig (is awesome!; ref: http://EditorConfig.org)
# ref: [EditorConfig ~ Level-0 Coding Standard](https://themightyprogrammer.dev/article/editor-config) @@ <https://archive.is/5wK2a>
# v2022.10.05; rivy
# spell-checker:ignore (words) akefile makefile makefiles MSVC POSIX VCproj
# * top-most EditorConfig file
root = true
[*]
# default ~ utf-8, unix-style newlines with a newline ending every file, 4 space indentation (and tab width)
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 100
smart_tabs = unset # ## unstable; ref: <https://github.com/editorconfig/editorconfig/issues/323>
tab_width = unset # default to 'indent_size'
trim_trailing_whitespace = true
[{[Mm]akefile{,.*},*.{mak,mk,[Mm][Aa][Kk],[Mm][Kk]},[Gg][Nn][Uu]makefile}]
# makefiles ~ TAB-style indentation
indent_style = tab
[*.{bash,sh}]
# Linux/POSIX shell scripts
indent_size = 4
indent_style = space
[*.{bat,cmd,[Bb][Aa][Tt],[Cc][Mm][Dd]}]
# BAT/CMD ~ DOS/Win requires BAT/CMD files to have CRLF EOLNs
end_of_line = crlf
[*.{c,cc,cpp,cxx,h,hh,hpp,hxx,[Cc],[Cc][Cc],[Cc][Pp][Pp],[Cc][Xx][Xx],[Hh],[Hh][Hh],[Hh][Pp][Pp],[Hh][Xx][Xx]}]
# C/C++
indent_size = 3
smart_tabs = true # ## unstable; ref: <https://github.com/editorconfig/editorconfig/issues/323>
[*.{cjs,cjx,cts,ctx,js,jsx,mjs,mts,mtx,ts,tsx,json,jsonc,vue}]
# js/ts/json ~ Prettier/XO-style == TAB indention + SPACE alignment
indent_size = 2
indent_style = tab
smart_tabs = true # ## unstable; ref: <https://github.com/editorconfig/editorconfig/issues/323>
[*.go]
# go ~ TAB-style indentation (SPACE-style alignment); ref: <https://blog.golang.org/gofmt>@@<https://archive.is/wip/9B6FC>
indent_style = tab
smart_tabs = true # ## unstable; ref: <https://github.com/editorconfig/editorconfig/issues/323>
[*.jq]
# `jq` script files
indent_size = 2
indent_style = space
[*.{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]}]
# markdown
indent_size = 2
indent_style = space
[*.{sln,vc{,x}proj{,.*},[Ss][Ln][Nn],[Vv][Cc]{,[Xx]}[Pp][Rr][Oo][Jj]{,.*}}]
# MSVC sln/vcproj/vcxproj files, when used, will persistantly revert to CRLF EOLNs and eat final EOLs
end_of_line = crlf
insert_final_newline = false
[*.{yaml,yml,[Yy][Aa][Mm][Ll],[Yy][Mm][Ll]}]
# YAML
indent_size = 2
indent_style = space