Update jshint and jquery.

This commit is contained in:
Rico Sta. Cruz 2014-06-21 21:25:07 +08:00
parent 1a950be6a8
commit 3cc433594e
2 changed files with 19 additions and 5 deletions

8
jquery-cdn.md Normal file
View File

@ -0,0 +1,8 @@
---
title: jQuery CDN
layout: default
---
### Google jQuery
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

View File

@ -3,23 +3,29 @@ title: Jshint
layout: default layout: default
--- ---
### Inline
/* jshint undef: true */
/* global jQuery */
/* global -BAD_LIB */
### Relaxing ### Relaxing
/* expr: true */ /* jshint expr: true */
production && minify = true; production && minify = true;
/* loopfunc: true */ /* jshint loopfunc: true */
for (i=0; i<10; x++) { for (i=0; i<10; x++) {
(function(i) { (function(i) {
})(i); })(i);
} }
/* sub: true */ /* jshint sub: true */
process.env['name_here']; process.env['name_here'];
### Enforcement ### Enforcement
/* es3: true (legacy IE compatibility) */ /* jshint es3: true (legacy IE compatibility) */
a.default = function() { ... }; a.default = function() { ... };
array = [ 1, 2, 3, ]; array = [ 1, 2, 3, ];
@ -34,6 +40,6 @@ layout: default
### Also see ### Also see
* www.jshint.com/docs/options/ * http://www.jshint.com/docs/options/
* https://gist.github.com/haschek/2595796 * https://gist.github.com/haschek/2595796