Skip to content

Instantly share code, notes, and snippets.

@dnoliver
Created August 11, 2017 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnoliver/1a754bb3a144ba2a3b695459bdfd1445 to your computer and use it in GitHub Desktop.
Save dnoliver/1a754bb3a144ba2a3b695459bdfd1445 to your computer and use it in GitHub Desktop.
Script to install and run jsonlint command on Ubuntu 16.04
#!/usr/bin/env bash
set -e
npm install -g jsonlint
FILES="$(find examples src -iname '*.json')"
for FILE in $FILES; do
echo "${FILE}"
jsonlint $FILE --quiet --compact || true
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment