FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rushstack/common/git-hooks/pre-commit at master · chengbapi/rushstack · GitHub
chengbapi
/
rushstack
Public
forked from
microsoft/rushstack
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rushstack
/
common
/
git-hooks
/
pre-commit
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
9 lines (8 loc) · 433 Bytes
Breadcrumbs
rushstack
/
common
/
git-hooks
/
pre-commit
Copy path
File metadata and controls
executable file
·
9 lines (8 loc) · 433 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
#!
/bin/sh
#
Called by "git commit" with no arguments. The hook should
#
exit with non-zero status after issuing an appropriate message if
#
it wants to stop the commit.
#
Invoke the "rush prettier" custom command to reformat files whenever they
#
are committed. The command is defined in common/config/rush/command-line.json
#
and uses the "rush-prettier" autoinstaller.
node common/scripts/install-run-rush.js prettier
||
exit
$?
Back
|
FazBrowse Home
|
New Git URL