Last active
January 23, 2024 10:08
-
-
Save raymelon/cde4726a1d32a00717b350cd089ed274 to your computer and use it in GitHub Desktop.
disable verification scripts on git commit (like lint-staged and husky)
This file contains hidden or 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
git commit -m "commit message" --no-verify | |
# use --no-verify flag | |
# | |
# lint-staged: https://github.com/lint-staged/lint-staged | |
# husky: https://github.com/typicode/husky | |
# | |
# example of lint-staged on package.json: | |
# | |
# { | |
# "name": "", | |
# ... | |
# "lint-staged": { | |
# "*.{ts,tsx,js,vue}": [ | |
# "eslint --fix", | |
# "prettier --write" | |
# ] | |
# } | |
# } | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment