node-web-i2c/.husky/pre-commit
Akihiko.KIgure 803bb900e3
husky, lint-staged, prettier 導入によるコミット時の自動フォーマット (#38)
* cf feature/prettier husky, lint-staged, prettier add.
2021-12-08 23:03:28 +09:00

7 lines
124 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# eslint 実行
npm run lint
# lint-staged 実行prettier
npm run precommit