Skip to content

Commit

Permalink
fix: disable stash by default when using diff option (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhanglong authored Feb 13, 2023
1 parent f88b6b7 commit 142c6f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ const lintStaged = async (
quiet = false,
relative = false,
shell = false,
stash = true,
// Stashing should be disabled by default when the `diff` option is used
stash = diff === undefined,
verbose = false,
} = {},
logger = console
Expand Down

0 comments on commit 142c6f2

Please sign in to comment.