editorconfig: add swift style

Xcode 16 introduces support for EditorConfig-based editor settings. Many
other editors also support EditorConfig.

In particular, this enables trailing whitespace trimming for Swift
source files.
This commit is contained in:
Jon Parise
2024-08-23 14:13:59 -04:00
parent 0e3ecbeaf0
commit fe5fb60374

View File

@ -7,3 +7,8 @@ indent_style = space
[bash-preexec.sh] [bash-preexec.sh]
indent_size = 4 indent_size = 4
indent_style = space indent_style = space
[*.swift]
indent_size = 4
indent_style = space
trim_trailing_whitespace = true