You could do this by placing ".swift-format" file near the project file.
You could grab whatever is used by default with
xcrun swift-format dump-configuration > ~/Desktop/.swift-format
change it according to your preferences and move to the target location.
Note that dot prefixed files are invisible in Finder by default.