-
由 Andrew Newdigate 创作于
This improves the editorconfig configuration to 1. Trim whitespace automatically on all doc/ markdown 1. Exclude vendor/ resources from editorconfig rules Spun out of https://gitlab.com/gitlab-org/gitlab/- /merge_requests/33193#note_1352533812
由 Andrew Newdigate 创作于This improves the editorconfig configuration to 1. Trim whitespace automatically on all doc/ markdown 1. Exclude vendor/ resources from editorconfig rules Spun out of https://gitlab.com/gitlab-org/gitlab/- /merge_requests/33193#note_1352533812
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。
.editorconfig 673 B
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*.{js,json,vue,scss,rb,haml,yml}]
indent_size = 2
[*.{js,json,vue,scss,rb,haml,yml,md}]
indent_style = space
charset = utf-8
[*.{md,markdown,js.snap}]
trim_trailing_whitespace = false
[doc/**/*.md]
trim_trailing_whitespace = true
[*.rb]
max_line_length = 120
# Don't apply editorconfig rules to vendor/ resources
[vendor/**]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
max_line_length = unset