Skip to content

Commit

Permalink
chore: add minimal scalafmt configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Dec 31, 2023
1 parent 8da591c commit f9130ab
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules/PPS-22-direct-style-experiments.main.iml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules/PPS-22-direct-style-experiments.test.iml

This file was deleted.

1 change: 1 addition & 0 deletions .idea/scala_compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ************************************** scalafmt configuration **************************************
# See configuration documentation at [https://scalameta.org/scalafmt/docs/configuration.html]
# ****************************************************************************************************
preset = default # Default configuration

version = 3.7.17 # Scalafmt version
runner.dialect = scala3 # Scala 3 formatting rules

maxColumn = 120 # Max char before forcing new line
align.preset = none # do not leave space to vertically align with previous lines
rewrite.trailingCommas.style = always # Always use trailing commas
docstrings.oneline = fold # Write scaladoc comments in a single line if they fit

0 comments on commit f9130ab

Please sign in to comment.