From c8e4b13eb99bdf02482e6d4bfb4f44a551320162 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Mon, 2 Oct 2023 03:42:33 -0700 Subject: [PATCH] fix: do not enable export when sourcing rc file (#553) --- docs/configuration.md | 15 ++++++++++++--- internal/templates/hook.tmpl | 3 +-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 07b1e464..db2e5c32 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -243,7 +243,7 @@ pre-commit: run: npm run eslint {staged_files} ``` -Provide a tweak to access `npm` executable the same way you do it in your ~/rc +Provide a tweak to access `npm` executable the same way you do it in your ~/rc. ```yml # lefthook-local.yml @@ -254,16 +254,25 @@ Provide a tweak to access `npm` executable the same way you do it in your ~/