Merge pull request #553 from roramirez/grunt-eslint-modules

Grunt eslint modules
This commit is contained in:
Michael Teeuw
2016-12-13 12:58:43 +01:00
committed by GitHub
10 changed files with 111 additions and 100 deletions

View File

@@ -22,7 +22,7 @@ module.exports = NodeHelper.create({
var stat;
try {
stat = fs.statSync(path.join(moduleFolder, '.git'));
stat = fs.statSync(path.join(moduleFolder, ".git"));
} catch(err) {
// Error when directory .git doesn't exist
// This module is not managed with git, skip

View File

@@ -59,7 +59,7 @@ Module.register("updatenotification", {
var subtext = document.createElement("div");
subtext.innerHTML = this.translate("UPDATE_INFO")
.replace("COMMIT_COUNT", this.status.behind + " " + ((this.status.behind == 1)? 'commit' : 'commits'))
.replace("COMMIT_COUNT", this.status.behind + " " + ((this.status.behind == 1)? "commit" : "commits"))
.replace("BRANCH_NAME", this.status.current);
subtext.className = "xsmall dimmed";
wrapper.appendChild(subtext);