Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: lint changed files before committing (#130)

白熱c8ee18ad8876
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 7f6c5ea7ec..a0330d658a 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -2,4 +2,4 @@
# . "$(dirname -- "$0")/_/husky.sh"
# lint all changed files
-# npm run pre-commit
+npx --no -- eslint $(git diff --name-only HEAD **/*.{tsx,ts,js} | xargs)