mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
* chore: add license-header * chore: add precommit * chore: add license header * fix: only js & shell style
16 lines
643 B
Bash
Executable File
16 lines
643 B
Bash
Executable File
#!/bin/bash
|
|
# 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-lint-staged" autoinstaller.
|
|
|
|
# Force to update codeowners file if packasge.json changed.
|
|
if [ "$PRE_LINT" != "1" ]; then
|
|
node common/scripts/install-run-rush.js -q lint-staged || exit $?
|
|
node common/scripts/install-run-rush.js check
|
|
node common/autoinstallers/license-header/index.js
|
|
fi
|