fix(pre-commit): autofix JSON formatting instead of failing
Add --autofix to pretty-format-json so the hook rewrites files in place rather than requiring manual intervention. Also applies the resulting key ordering fixes to settings.json files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
|
"enabledPlugins": {
|
||||||
|
"bin@holocron": true,
|
||||||
|
"kyberforge@holocron": true
|
||||||
|
},
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"PreToolUse": []
|
"PreToolUse": []
|
||||||
},
|
|
||||||
"enabledPlugins": {
|
|
||||||
"kyberforge@holocron": true,
|
|
||||||
"bin@holocron": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ repos:
|
|||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
|
args: [--autofix]
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"theme": "dark",
|
|
||||||
"statusLine": {
|
"statusLine": {
|
||||||
"type": "command",
|
"command": "bash ~/.claude/statusline-command.sh",
|
||||||
"command": "bash ~/.claude/statusline-command.sh"
|
"type": "command"
|
||||||
}
|
},
|
||||||
|
"theme": "dark"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user