Skip to content

Instantly share code, notes, and snippets.

@tylor
Created October 25, 2011 19:20
Show Gist options
  • Save tylor/1313916 to your computer and use it in GitHub Desktop.
Save tylor/1313916 to your computer and use it in GitHub Desktop.
JSLint validation in Textmate
Quick and dirty JSLint validator for Textmate:
1. Install node and npm
2. Install jslint module: npm install -g jslint
3. Create a new command named jslint for Javascript in the Bundle Editor
- Input: 'Entire Document'
- Output: 'Show as Tool Tip'
- Activation: Key Equivalent, something like Command+j
- Command(s), probably have to change your node path:
export PATH=$PATH:$HOME/local/node/bin/
jslint "$TM_FILEPATH"
4. Close Bundle Editor, run on current document by invoking with Command+j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment