diff .pre-commit-config.yaml @ 414:7004867c436c

Add pre-commit
author zegervdv <zegervdv@me.com>
date Sun, 18 Jul 2021 10:05:02 +0200
parents
children 627d2040c3ff
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.pre-commit-config.yaml	Sun Jul 18 10:05:02 2021 +0200
@@ -0,0 +1,16 @@
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.0.1
+    hooks:
+      - id: check-yaml
+      - id: end-of-file-fixer
+      - id: trailing-whitespace
+
+  - repo: local
+    hooks:
+      - id: stylua
+        name: Format with stylua
+        description: Formats lua files
+        entry: stylua
+        language: system
+        types: [lua]