Skip to content

Commit

Permalink
Add basic style config and some style fixes
Browse files Browse the repository at this point in the history
The only potentially controversial thing here are spaces around
string concat, it's currently rather inconsistent, so I just set it
to "foo .. bar".
  • Loading branch information
emmericp committed Feb 4, 2024
1 parent 057406d commit 548f99a
Show file tree
Hide file tree
Showing 2 changed files with 587 additions and 574 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,14 @@ trim_trailing_whitespace = false
[{*.yml,.pkgmeta}]
indent_style = space
indent_size = 2

[*.lua]
# foo + bar * 5
space_around_math_operator = true
# foo = {1, 2, 3}
space_around_table_field_list = false
# mod:SetGeneralLocalization{name = "foo"}
space_before_function_call_single_arg = false
# -- comment not indented above else/elseif
# elseif bar then
never_indent_comment_on_if_branch = true
Loading

0 comments on commit 548f99a

Please sign in to comment.