Skip to content

Commit

Permalink
Add jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hall committed Nov 3, 2014
1 parent d116776 commit 4d447bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ var defaults = {
y: 0 // Starting Y position
};

// Sorting functions from
// Sorting functions from Jake Gordon's bin packing algorithm demo
// https://github.com/jakesgordon/bin-packing
var sort = {
w : function (a,b) { return b.w - a.w; },
h : function (a,b) { return b.h - a.h; },
Expand All @@ -44,12 +45,12 @@ var sort = {
var diff, n;
for (n = 0 ; n < criteria.length ; n++) {
diff = sort[criteria[n]](a,b);
if (diff != 0)
if (diff !== 0)
return diff;
}
return 0;
}
}
};


// This is where the magic happens
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"repository": "https://github.com/iamdarrenhall/gulp-svg-sprite",
"version": "0.0.1",
"devDependencies": {
"gulp": "^3.8.9"
"gulp": "^3.8.9",
"gulp-jshint": "^1.9.0",
"gulp-svgmin": "^0.4.7"
},
"dependencies": {
"cheerio": "^0.17.0",
Expand Down

0 comments on commit 4d447bb

Please sign in to comment.