Update jshint and jquery.
This commit is contained in:
parent
1a950be6a8
commit
3cc433594e
|
|
@ -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>
|
||||||
16
jshint.md
16
jshint.md
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue