mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:11:48 +00:00
The default my editor uses is 4 spaces, which always throws formatting errors in CI. This makes my life easier :)
34 lines
558 B
INI
34 lines
558 B
INI
root = true
|
|
|
|
[*]
|
|
insert_final_newline = true
|
|
end_of_line = lf
|
|
charset = utf-8
|
|
trim_trailing_whitespace = true
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
[*.go]
|
|
indent_style = tab
|
|
|
|
[{*.kt,*.java,*.kts,*.lua,*.js,*.jsx,*.json,*.yml,*.yaml,*.md,.babelrc,.stylelintrc,*.proto}]
|
|
indent_size = 2
|
|
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|
|
|
|
[{*.sh, *.bash}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
switch_case_indent = true
|
|
|
|
[**/node_modules/**]
|
|
ignore = true
|
|
|
|
# shfmt shouldn't format third-party script codecov.sh
|
|
[dev/ci/codecov.sh]
|
|
ignore = true
|
|
|
|
[*.nix]
|
|
indent_size = 2
|