mirror of
https://example.com
synced 2024-11-22 06:36:38 +09:00
dev: format the code in pre-commit
This commit is contained in:
parent
1beb3df99f
commit
b5a34b5bcb
2 changed files with 7 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -24,7 +24,7 @@ UPDATE_SCRIPTS += $(foreach dir, neko/update, $(wildcard $(dir)/*))
|
|||
|
||||
|
||||
.PHONY: pre-commit
|
||||
pre-commit: shellcheck update-lockfiles regenerate-entities neko/index.js rust-lint
|
||||
pre-commit: format shellcheck update-lockfiles regenerate-entities neko/index.js rust-lint
|
||||
|
||||
|
||||
.PHONY: update-lockfiles
|
||||
|
@ -53,6 +53,11 @@ $(T)/shellcheck: $(UPDATE_SCRIPTS)
|
|||
touch $@
|
||||
|
||||
|
||||
.PHONY: format
|
||||
format:
|
||||
pnpm run format
|
||||
|
||||
|
||||
.PHONY: rust-lint
|
||||
rust-lint: $(T)/rust-lint
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ make
|
|||
make run
|
||||
```
|
||||
|
||||
### lockfile や native-utils の entity の更新など(コミット前に行ってください)
|
||||
### lockfile や native-utils の entity の更新やコードのフォーマットなど(コミット前に行ってください)
|
||||
|
||||
```bash
|
||||
make
|
||||
|
|
Loading…
Reference in a new issue