Skip to content

0.51.0

Compare
Choose a tag to compare
@nicklockwood nicklockwood released this 28 Feb 22:48
  • Added hoistAwait and hoistTry rules to hoist inline await/try to start of expression
  • Extended redundantPattern rule to remove redundant let in patterns
  • The wrapMultilineStatementBraces rules is now applied more consistently
  • Updated redundantReturn/Closure rules to support if/switch expressions in Swift 5.8
  • Added conditionalAssignment rule to assign variables using if/switch expressions in Swift 5.8
  • Updated redundantType rule to support if/switch expression assignment Swift 5.8
  • Extended redundantSelf rule to support implicit self in eligible closures in Swift 5.8
  • SwiftFormat now ignores .swiftformat files when explicit --config file is provided
  • Added --wrapenumcases with-values option to only wrap enum cases with values
  • Added --wrapeffects option for wrapping function effects
  • Removed unsafe preferDouble rule