From 583b4572daa4e49e58549d1a4a07679ff6ce730e Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 30 Nov 2025 13:46:04 +0100 Subject: [PATCH] fix: exclude JSONC files from JSON validation Exclude VS Code config files (.vscode/), TypeScript configs (tsconfig*.json), and compile_commands.json from strict JSON validation since they use JSONC format --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8693790..937d3e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,8 @@ repos: - id: check-yaml args: [--unsafe] - id: check-json + # Exclude JSONC files (VS Code configs, TypeScript configs) and compile_commands.json + exclude: ^(\.vscode/|.*/\.vscode/|C/compile_commands\.json|.*tsconfig.*\.json) - id: check-toml - id: check-xml - id: check-added-large-files