diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5f1a2a..d29778f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ --- repos: - repo: https://github.com/JohnnyMorganz/StyLua - rev: v0.14.2 + rev: v2.1.0 hooks: - id: stylua-github diff --git a/.stylua.toml b/.stylua.toml new file mode 100644 index 0000000..f65fe00 --- /dev/null +++ b/.stylua.toml @@ -0,0 +1,12 @@ +syntax = 'LuaJIT' +space_after_function_names = "Never" +indent_type = "Tabs" +indent_width = 4 +column_width = 100 +line_endings = "Unix" +quote_style = "AutoPreferDouble" +call_parentheses = "Always" +collapse_simple_statement = "Never" + +[sort_requires] +enabled = false