Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose jsonlint as a pre-commit hook #124

Closed
wants to merge 1 commit into from
Closed

Conversation

ssbarnea
Copy link

@ssbarnea ssbarnea commented Jul 3, 2020

Adds hook definition so jsonlint can be used to lint JSON files by users of pre-commit tool.

Adds hook definition so jsonlint can be used to lint JSON files by
users of pre-commit tool.
- id: jsonlint
name: jsonlint
description: This hook runs jsonlint
entry: bash -c 'for x in "$@"; do jsonlint --quiet --compact "$x"; done' --
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically this hack is required because #77 was never implemented.

@ssbarnea
Copy link
Author

Note to myself: don't flog a dead horse.

@ssbarnea ssbarnea closed this Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant