-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in ADGUARD-FILTERS/aglint from fix/update-husky-to-v9 to master Squashed commit of the following: commit d350977 Author: scripthunter7 <[email protected]> Date: Wed Jan 31 11:09:16 2024 +0100 Clean comment commit 802ad91 Author: scripthunter7 <[email protected]> Date: Wed Jan 31 11:07:34 2024 +0100 Update Husky to v9
- Loading branch information
1 parent
31c3ab6
commit 4ccf69d
Showing
4 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// See: https://typicode.github.io/husky/how-to.html#ci-server-and-docker | ||
import ci from 'ci-info'; | ||
|
||
// Do not initialize Husky in CI environments. | ||
if (ci.isCI) { | ||
console.log('Skipping Husky initialization, because we detected a CI environment:', ci.name); | ||
process.exit(0); | ||
} | ||
|
||
// Initialize Husky programmatically. | ||
const husky = (await import('husky')).default; | ||
console.log(husky()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn check-types | ||
yarn lint | ||
yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters