From a9223330170984d382c9fc82ece0f0386359fd05 Mon Sep 17 00:00:00 2001 From: Canhua Li Date: Thu, 20 Jan 2022 13:18:30 -0800 Subject: [PATCH] skip npx lint-staged on the hook --- source/nodejs/.husky/pre-commit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/nodejs/.husky/pre-commit b/source/nodejs/.husky/pre-commit index 7400e71e7a..c497cf3112 100755 --- a/source/nodejs/.husky/pre-commit +++ b/source/nodejs/.husky/pre-commit @@ -4,8 +4,9 @@ if [ -f $HUSKY_SH ]; then . $HUSKY_SH cd source/nodejs NODEJS_FILES_CHANGED=`git status . --short | wc -l` - if [ $NODEJS_FILES_CHANGED != "0" ]; then - npx lint-staged - fi + # npx lint-staged is disabled because of https://github.com/microsoft/AdaptiveCards/issues/6895 + #if [ $NODEJS_FILES_CHANGED != "0" ]; then + # npx lint-staged + #fi fi