Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat(frontend): lint frontend files when committed (#118)

Liu Jiedca28624b4c
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3bbaf251c2..68ca0c5c40 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,4 +1,11 @@
repos:
+- repo: https://github.com/pre-commit/mirrors-eslint
+ rev: v8.3.0
+ hooks:
+ - id: eslint
+ files: frontend/.+\.([jt]sx?|vue)$
+ types: [file]
+ args: [--fix]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.0
hooks: