From c3f2a5f5ef9e587ea0dba85ed5075da61e88d8b7 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 28 Jun 2026 15:37:51 +0000 Subject: [PATCH] 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 --- .claude/settings.json | 8 ++++---- .pre-commit-config.yaml | 1 + providers/claude-code/settings.json | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index a155622..4e0a91c 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,9 +1,9 @@ { + "enabledPlugins": { + "bin@holocron": true, + "kyberforge@holocron": true + }, "hooks": { "PreToolUse": [] - }, - "enabledPlugins": { - "kyberforge@holocron": true, - "bin@holocron": true } } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae6d0d6..39ae3de 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,7 @@ repos: stages: ['pre-commit'] - id: pretty-format-json stages: ['pre-commit'] + args: [--autofix] - id: check-yaml stages: ['pre-commit'] - id: trailing-whitespace diff --git a/providers/claude-code/settings.json b/providers/claude-code/settings.json index 40fdea9..1c56480 100644 --- a/providers/claude-code/settings.json +++ b/providers/claude-code/settings.json @@ -1,7 +1,7 @@ { - "theme": "dark", "statusLine": { - "type": "command", - "command": "bash ~/.claude/statusline-command.sh" - } + "command": "bash ~/.claude/statusline-command.sh", + "type": "command" + }, + "theme": "dark" }