]> source.dussan.org Git - jquery.git/commitdiff
adds strict rule to jshint options (except for test files). "use strict" is added...
authorjaubourg <j@ubourg.net>
Thu, 18 Oct 2012 04:50:01 +0000 (00:50 -0400)
committerjaubourg <j@ubourg.net>
Thu, 18 Oct 2012 04:50:01 +0000 (00:50 -0400)
.jshintrc
src/.jshintrc
src/effects.js
src/intro.js

index 5ff1e697da661013aa64ccfa7375dcb77126b756..79ed65fc1ec264e1e365ac87cec0b28dcc604f3a 100644 (file)
--- a/.jshintrc
+++ b/.jshintrc
@@ -9,6 +9,7 @@
     "node": true,
     "quotmark": "double",
     "smarttabs": true,
+    "strict": true,
     "trailing": true,
     "undef": true,
     "unused": true
index d74bf14fd7d90d627f0e51007d5b15d25ee9c1ed..bc4ae77505db1982c8a80c84d03c79d401f4b867 100644 (file)
@@ -6,8 +6,10 @@
     "evil": true,
     "expr": true,
     "maxerr": 100,
+    "newcap": false,
     "quotmark": "double",
     "smarttabs": true,
+    "strict": true,
     "sub": true,
     "trailing": true,
     "undef": true,
index dcc6c00b7cff0efc02e8ac08f34771b63c6f9e51..7627e3a23be7e7e5a8f828f54fb5ad88c2d6a7bd 100644 (file)
@@ -233,6 +233,7 @@ jQuery.Animation = jQuery.extend( Animation, {
 });
 
 function defaultPrefilter( elem, props, opts ) {
+       /*jshint validthis:true */
        var index, prop, value, length, dataShow, tween, hooks, oldfire,
                anim = this,
                style = elem.style,
index c041bb4bad46c4b149837f85102b31cc4a307654..0b98012ec6d22abb9ba038330af7a402ed57abd8 100644 (file)
@@ -12,3 +12,4 @@
  * Date: @DATE
  */
 (function( window, undefined ) {
+"use strict";