Skip to content

Instantly share code, notes, and snippets.

@shawnhank
Forked from seiz/01)JavaScript Syntax Check.sh
Created November 23, 2021 20:31
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 shawnhank/9f067a5f3a480de7c54d69aea166c7c5 to your computer and use it in GitHub Desktop.
Save shawnhank/9f067a5f3a480de7c54d69aea166c7c5 to your computer and use it in GitHub Desktop.
BBedit Script to syntax check a JavaScript-File with jshint.
#!/bin/bash
/usr/local/bin/jshint "$BB_DOC_PATH" | bbresults -e --pattern '(?P<file>.+?):\sline\s(?P<line>\d+),\scol\s((?P<col>\d+),)?\s+(?P<msg>.*)$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment