Skip to content

Latest commit

 

History

History

jsonlint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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