chore(fmt): Finally let's use stylua

Hoping it's as good as go-fmt
This commit is contained in:
hedy
2023-11-17 09:28:33 +08:00
parent d400d4f025
commit dc55a8b942
22 changed files with 247 additions and 307 deletions

12
.stylua.toml Normal file
View File

@@ -0,0 +1,12 @@
column_width = 100
line_endings = 'Unix'
indent_type = 'Spaces'
indent_width = 2
# Not very good looking in general, but faster to type
quote_style = 'AutoPreferSingle'
# Since there are ambiguities sometimes let's just not use this shortcut
# alltogether
call_parentheses = 'Always'
[sort_requires]
enabled = true