A pre-commit hook that executes the jkdiff command from json-keys-diff NPM package
This hook will check modified files and will compare matching files between each other where ever they are placed on the project.
- repo: https://github.com/Drafteame/json-keys-diff-hook
rev: main
hooks:
- id: jkdiff-files
args: ["--match=json$"] # Regexp to match file names including path. (default 'json$')
This hook will check modified files and if some one match the provided expression, all matching files inside it's folder will be compared between each other.
- repo: https://github.com/Drafteame/json-keys-diff-hook
rev: main
hooks:
- id: jkdiff-folder
args: ["--match=json$"] # Regexp to match file names including path. (default 'json$')