Following the previous post, we will see today how to check the syntax for JS.
In this case we will need a bundle wrote some time ago by Andrew Dupont here. (read the article , scroll down and download the bundle).
Install the bundle.
In this moment you are almost good to go, as the bundle is set to run just as the previous PHP check syntax, when you save the file.
I say almost good to go, because there is an warning you get from ruby, ”Insecure world writable dir”.
So open the Bundle Editor, find Javascript tools, click on the Quick Lint command and add a -W0 ( is a zero here ) after the ruby word, like this:
ruby -W0 “$TM_BUNDLE_SUPPORT/bin/quick_lint.rb”

Close the Bundle Editor.
This is how it looks in action:

That’s it.
No related posts...yet
