refactor config config

This commit is contained in:
sunxyw
2022-12-31 20:12:20 +08:00
parent c1a0fae6e6
commit aee7fa332a
3 changed files with 64 additions and 19 deletions

View File

@@ -14,7 +14,7 @@
"enabled": true,
"actions": [
{
"action": "composer cs-fix -- {$STAGED_FILES|of-type:php} --dry-run",
"action": "composer cs-fix -- --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php}",
"conditions": [
{
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",