chore: remove useless script, can use HUSKY=0

This commit is contained in:
Elliot DeNolf
2024-11-12 20:50:52 -05:00
parent f6bdc0aaf6
commit 1b16730b20
2 changed files with 1 additions and 22 deletions

View File

@@ -1,21 +0,0 @@
// run-lint-staged.js
;(async () => {
// Check if DISABLE_HUSKY environment variable is set to "true"
if (process.env.DISABLE_HUSKY === 'true') {
console.log('Husky is disabled, skipping lint-staged.')
process.exit(0)
}
try {
// Dynamically import execa to handle compatibility with ESM
const execa = await import('execa')
console.log('Running lint-staged...')
// Run lint-staged with quiet mode
await execa.default('lint-staged', ['--quiet'], { stdio: 'inherit' })
} catch (error) {
console.error('Failed to run lint-staged:', error)
process.exit(1)
}
})()