-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aed228
commit 4beab73
Showing
4 changed files
with
166 additions
and
0 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
dist/ | ||
lefthook-local.yaml |
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,39 @@ | ||
pre-commit: | ||
parallel: true | ||
commands: | ||
main-branch-check: | ||
only: | ||
- ref: 'main' | ||
run: 'exit 1' | ||
fail_text: 'Please switch to another branch before committing. Use `git switch -c <branch-name>`.' | ||
prettier: | ||
run: 'npx prettier {staged_files} --check --ignore-unknown' | ||
fail_text: 'Please fix the formatting issues before committing. Use `npm run format`.' | ||
eslint: | ||
glob: '*.{mjs,ts}' | ||
run: 'npx eslint {staged_files}' | ||
fail_text: 'Please fix the ESLint issues before committing. Try `npx eslint --fix .`.' | ||
markdownlint: | ||
glob: '*.md' | ||
run: 'npx markdownlint {staged_files}' | ||
fail_text: 'Please fix the markdownlint issues before committing. Try `npx markdownlint --fix .`.' | ||
build: | ||
glob: 'src/**' | ||
run: 'npm run build' | ||
fail_text: 'Please fix the build issues before committing. Try `npm run build`.' | ||
test: | ||
glob: '{src,tests}/**' | ||
run: 'npm run test' | ||
fail_text: 'Please fix the test issues before committing. Try `npm run test:watch`.' | ||
type-test: | ||
glob: '{src,type-tests}/**' | ||
run: 'npm run type-test' | ||
fail_text: 'Please fix the type test issues before committing. Try `npm run type-test`.' | ||
output: | ||
- 'summary' | ||
- 'success' | ||
- 'failure' | ||
- 'execution' | ||
- 'execution_out' | ||
- 'execution_info' | ||
- 'skips' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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