Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Force single quote rule on lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Jun 8, 2013
1 parent 471f92e commit ffd15c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"expr": true
"expr": true,
"quotmark": "single"
}
10 changes: 5 additions & 5 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ logger.applyReplacements = function(output) {

for (regexPattern in config.replace) {
output = output.replace(
new RegExp(regexPattern, "g"), config.replace[regexPattern]);
new RegExp(regexPattern, 'g'), config.replace[regexPattern]);
}

return output;
Expand Down Expand Up @@ -95,19 +95,19 @@ logger.registerHelpers_ = function() {
});

handlebars.registerHelper('link', function() {
return 'http://github.com/' + this.options.user + "/" + this.options.repo + "/pull/" + this.options.number;
return 'http://github.com/' + this.options.user + '/' + this.options.repo + '/pull/' + this.options.number;
});

handlebars.registerHelper('forwardedLink', function() {
return 'http://github.com/' + this.options.fwd + "/" + this.options.repo + "/pull/" + this.options.forwardedPull;
return 'http://github.com/' + this.options.fwd + '/' + this.options.repo + '/pull/' + this.options.forwardedPull;
});

handlebars.registerHelper('submittedLink', function() {
return 'http://github.com/' + this.options.submit + "/" + this.options.repo + "/pull/" + this.options.submittedPull;
return 'http://github.com/' + this.options.submit + '/' + this.options.repo + '/pull/' + this.options.submittedPull;
});

handlebars.registerHelper('issueLink', function() {
return 'http://github.com/' + this.options.user + "/" + this.options.repo + "/issues/" + this.options.number;
return 'http://github.com/' + this.options.user + '/' + this.options.repo + '/issues/' + this.options.number;
});

logger.registerStyles_();
Expand Down

0 comments on commit ffd15c2

Please sign in to comment.