.pre-commit-config.yaml: exclude browser extension policies from pretty-format-json

This commit is contained in:
Aminda Suomalainen 2024-02-29 08:54:56 +02:00
parent e343e80858
commit 3e85fad4f7
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ repos:
- id: mixed-line-ending
args: [--fix=auto]
- id: pretty-format-json
# Breaks AdNauseam/uBlock Origin rules as the browser interprets
# values to be set for empty options.
exclude: ^etc\/firefox\/policies\/policies.json|etc\/opt\/chromium\/policies\/managed\/aminda-extensions.json$
args:
# Remember also: --no-sort-keys
# ASCII excludes the älphäbet amongst others