chore: add stylua and pre-commit hook

This commit is contained in:
Matej Janezic 2025-10-04 00:16:38 +02:00
parent 7b5d923dee
commit d02d663251
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
2 changed files with 9 additions and 0 deletions

6
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,6 @@
repos:
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v2.3.0
hooks:
- id: stylua-system
args: [--check, --respect-ignores]

3
.stylua.toml Normal file
View File

@ -0,0 +1,3 @@
column_width = 88
indent_type = "Spaces"
collapse_simple_statement = "Always"