From 5ed6fe2bc9a76fb357f534c4d6c47fe4f4edfe7e 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