We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd50ff9 commit d4cfa79Copy full SHA for d4cfa79
src/scripts/pre-commit.js
@@ -81,7 +81,7 @@ const lintStagedResult = spawn.sync(
81
{stdio: 'inherit'},
82
)
83
84
-if (useCustomBuiltInConfig) {
+if (useCustomBuiltInConfig && customBuiltInConfig) {
85
fs.rmdirSync(path.dirname(customBuiltInConfig), {recursive: true})
86
}
87
@@ -90,7 +90,7 @@ if (lintStagedResult.status === 0 && ifScript('validate')) {
90
stdio: 'inherit',
91
})
92
93
- process.exit(validateResult.status)
+ process.exit(validateResult.status ?? 0)
94
} else {
95
- process.exit(lintStagedResult.status)
+ process.exit(lintStagedResult.status ?? 0)
96
0 commit comments