Permalink
Browse files

Changed default jslint path. Updated docs.

  • Loading branch information...
1 parent 5034bf1 commit abc50fcf6ac979fb8e4d68dc885fc5b3b5749bf4 @lovett committed Apr 4, 2011
Showing with 16 additions and 3 deletions.
  1. 0 README
  2. +13 −0 README.org
  3. +3 −3 validate-js
View
0 README
No changes.
View
@@ -0,0 +1,13 @@
+* Overview
+This is a collection of utilities that automate or assist with
+front-end web development.
+
+* validate-js
+A command-line JavaScript validation tool. Give it a JavaScript file,
+and it'll run that file through both JSLint and Google Closure
+Linter.
+
+* bookmarklets/validate.js
+Sends the HTML source of the current page to the W3C Validator. Useful
+when you're in a staging or development environment that is otherwise
+inacessible from the validator.
View
@@ -1,7 +1,7 @@
#!/bin/bash
# Closure Linter: http://code.google.com/closure/utilities/docs/linter_howto.html
-# JSLint: http://www.jslint.com/rhino/index.html
+# JSLint: https://github.com/douglascrockford/JSLint
TMP_PREFIX=$(basename "$0")
@@ -14,7 +14,7 @@ echo ""
echo "# JSLint"
echo "############################################################"
-JSLINT=/usr/local/bin/jslint.js
+JSLINT=/var/www/JSLint/fulljslint.js
JSLINT_OPTIONS="/*jslint passfail: true, white: false, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */"
@@ -27,7 +27,7 @@ echo "$JSLINT_GLOBALS" >> "$SRC_WITH_CONFIG"
cat "$1" >> "$SRC_WITH_CONFIG"
# invoke rhino and decrement the line numbers to account for the lines
-# for the options and globals
+# added regarding options and globals
if [[ ! -e $JSLINT ]]; then
echo "Expected to find jslint at $JSLINT, but it wasn't there."

0 comments on commit abc50fc

Please sign in to comment.