Created
October 25, 2011 19:20
-
-
Save tylor/1313916 to your computer and use it in GitHub Desktop.
JSLint validation in Textmate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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