Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 590 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 590 Bytes

jsonlint hook

Validation tool for JSON files. https://github.com/zaach/jsonlint

Configuration

Currently, we are using this tool to validate our JSON files and run a git patch to fix it due to formatting issues. So by default, we use it to sort the keys and automatically update the actual files (and lefthook will execute the git add).

How to Use It

# .lefthook.yaml
remotes:
  - git_url: [email protected]:boozt-platform/lefthook
    ref: [tag]
    configs:
      # validate the JSON files
      - hooks/jsonlint/.lefthook.yaml