No ticket. Restore checking individual src/**/*.js files by jsHint.

parent 1f16b168
src/intro.js
src/outro.js
test/qunit/**
test/data/jquery-1.9.1.ajax_xhr.min.js
test/data/badcall.js
......
......@@ -55,6 +55,12 @@ module.exports = function( grunt ) {
}
},
jshint: {
src: {
src: [ "src/**/*.js" ],
options: {
jshintrc: "src/.jshintrc"
}
},
dist: {
src: [ "dist/jquery.js" ],
options: srcHintOptions
......
......@@ -71,4 +71,4 @@ jQuery.fn.load = function( url, params, callback ) {
return this;
};
});
\ No newline at end of file
});
define(function() {
return /\?/;
});
\ No newline at end of file
return (/\?/);
});
define(function() {
return [ "Top", "Right", "Bottom", "Left" ];
});
\ No newline at end of file
});
......@@ -10,4 +10,4 @@ define([
elem = el || elem;
return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
};
});
\ No newline at end of file
});
......@@ -15,4 +15,4 @@ if ( typeof define === "function" && define.amd ) {
});
}
});
\ No newline at end of file
});
define(function() {
return /^(?:checkbox|radio)$/i;
});
\ No newline at end of file
return (/^(?:checkbox|radio)$/i);
});
......@@ -60,7 +60,8 @@ jQuery.offset = {
curOffset = curElem.offset();
curCSSTop = jQuery.css( elem, "top" );
curCSSLeft = jQuery.css( elem, "left" );
calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf("auto") > -1;
calculatePosition = ( position === "absolute" || position === "fixed" ) &&
( curCSSTop + curCSSLeft ).indexOf("auto") > -1;
// Need to be able to calculate position if either top or left is auto and position is either absolute or fixed
if ( calculatePosition ) {
......
}));
\ No newline at end of file
}));
define([ "./selector-sizzle" ]);
\ No newline at end of file
define([ "./selector-sizzle" ]);
define(function() {
return [];
});
\ No newline at end of file
});
define(function() {
return {};
});
\ No newline at end of file
});
......@@ -2,4 +2,4 @@ define([
"./arr"
], function( arr ) {
return arr.concat;
});
\ No newline at end of file
});
......@@ -2,4 +2,4 @@ define([
"./class2type"
], function( class2type ) {
return class2type.hasOwnProperty;
});
\ No newline at end of file
});
......@@ -2,4 +2,4 @@ define([
"./arr"
], function( arr ) {
return arr.indexOf;
});
\ No newline at end of file
});
define(function() {
return /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;
});
\ No newline at end of file
return (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
});
......@@ -2,4 +2,4 @@ define([
"./arr"
], function( arr ) {
return arr.push;
});
\ No newline at end of file
});
define(function() {
return /\S+/g;
});
\ No newline at end of file
return (/\S+/g);
});
......@@ -2,4 +2,4 @@ define([
"./arr"
], function( arr ) {
return arr.slice;
});
\ No newline at end of file
});
define(function() {
return typeof undefined;
});
\ No newline at end of file
});
......@@ -2,4 +2,4 @@ define([
"./class2type"
], function( class2type ) {
return class2type.toString;
});
\ No newline at end of file
});
define(function() {
return "".trim;
});
\ No newline at end of file
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment