-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add cspell check hook for lefthook (#103)
- Loading branch information
Showing
4 changed files
with
54 additions
and
3 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,18 @@ | ||
# REF: | ||
# https://cspell.org/configuration/ | ||
# Usage: | ||
# npx cspell --no-progress . | ||
|
||
words: | ||
- ECODE | ||
- endfor | ||
- dotenv | ||
- nushell | ||
- hustcer | ||
- rsbuild | ||
- justfile | ||
- lefthook | ||
- linewise | ||
- hovercards | ||
ignorePaths: | ||
|
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,33 @@ | ||
# EXAMPLE USAGE | ||
# Refer for explanation to following link: | ||
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md | ||
# | ||
# pre-push: | ||
# commands: | ||
# packages-audit: | ||
# tags: frontend security | ||
# run: yarn audit | ||
# gems-audit: | ||
# tags: backend security | ||
# run: bundle audit | ||
# | ||
min_version: 1.7.12 | ||
no_tty: false | ||
skip_output: | ||
- meta # Skips lefthook version printing | ||
- skips # Skips "skip" printing (i.e. no files matched) | ||
- summary # Skips summary block (successful and failed steps) printing | ||
- success # Skips successful steps printing | ||
- failure # Skips failed steps printing | ||
- execution_info # Skips printing `EXECUTE > ...` logging | ||
|
||
pre-commit: | ||
parallel: true | ||
commands: | ||
spell-check: | ||
skip: | ||
- merge | ||
- rebase | ||
stage_fixed: true | ||
glob: "*.*" | ||
run: cspell --no-progress {staged_files} |
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