Skip to content

Commit 1a25f21

Browse files
committed
No ticket. Restore checking individual src/**/*.js files by jsHint.
1 parent 1f16b16 commit 1a25f21

23 files changed

Lines changed: 34 additions & 25 deletions

.jshintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
src/intro.js
2+
src/outro.js
13
test/qunit/**
24
test/data/jquery-1.9.1.ajax_xhr.min.js
35
test/data/badcall.js

Gruntfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ module.exports = function( grunt ) {
5555
}
5656
},
5757
jshint: {
58+
src: {
59+
src: [ "src/**/*.js" ],
60+
options: {
61+
jshintrc: "src/.jshintrc"
62+
}
63+
},
5864
dist: {
5965
src: [ "dist/jquery.js" ],
6066
options: srcHintOptions

src/ajax/load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ jQuery.fn.load = function( url, params, callback ) {
7171
return this;
7272
};
7373

74-
});
74+
});

src/ajax/var/rquery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
define(function() {
2-
return /\?/;
3-
});
2+
return (/\?/);
3+
});

src/css/var/cssExpand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
define(function() {
22
return [ "Top", "Right", "Bottom", "Left" ];
3-
});
3+
});

src/css/var/isHidden.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ define([
1010
elem = el || elem;
1111
return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
1212
};
13-
});
13+
});

src/exports/amd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ if ( typeof define === "function" && define.amd ) {
1515
});
1616
}
1717

18-
});
18+
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
define(function() {
2-
return /^(?:checkbox|radio)$/i;
3-
});
2+
return (/^(?:checkbox|radio)$/i);
3+
});

src/offset.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ jQuery.offset = {
6060
curOffset = curElem.offset();
6161
curCSSTop = jQuery.css( elem, "top" );
6262
curCSSLeft = jQuery.css( elem, "left" );
63-
calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf("auto") > -1;
63+
calculatePosition = ( position === "absolute" || position === "fixed" ) &&
64+
( curCSSTop + curCSSLeft ).indexOf("auto") > -1;
6465

6566
// Need to be able to calculate position if either top or left is auto and position is either absolute or fixed
6667
if ( calculatePosition ) {

src/outro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
}));
1+
}));

0 commit comments

Comments
 (0)