feat: add pre-commit

This commit is contained in:
yetone
2024-08-15 10:33:22 +08:00
parent 91b54af2a7
commit c4bc1a21a7
2 changed files with 23 additions and 1 deletions

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

@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.20.0
hooks:
- id: stylua # or stylua-system / stylua-github