Skip to content

Commit

Permalink
[style] eslint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
icfr committed Sep 26, 2016
1 parent d502d78 commit 6f7f7e5
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ rules:
no-floating-decimal: 2
no-implicit-coercion: 2
no-implied-eval: 2
no-invalid-this: 1
no-invalid-this: 2
no-iterator: 2
no-labels: 2
no-lone-blocks: 2
Expand Down Expand Up @@ -148,8 +148,8 @@ rules:
max-nested-callbacks: [2,4]
max-params: 0
max-statements: [2, 35]
new-cap: 0
new-parens: 0
new-cap: 2
new-parens: 2
newline-after-var: 0
no-array-constructor: 2
no-bitwise: 2
Expand Down Expand Up @@ -177,9 +177,9 @@ rules:
quotes: 0
require-jsdoc: 0
semi-spacing: 0
semi: 0
semi: 2
sort-vars: 0
space-after-keywords: 0
keyword-spacing: 2
space-before-blocks: 0
space-before-function-paren: 0
space-before-keywords: 0
Expand Down
2 changes: 1 addition & 1 deletion .istanbul.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ instrumentation:
default-excludes: true
excludes:
- 'node_modules/**/*'
- 'index.js'
- 'resources/**/*'
- 'bootstrap/commands.js'
- 'data/**/*'
- 'test/**/*'
embed-source: true
Expand Down
2 changes: 1 addition & 1 deletion Commands/makeCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var createCommand = function createCommand(cmdName) {
resolve(cmdName + ' created');
})
.catch(function writeErr(err) {
reject(err)
reject(err);
});
});
};
Expand Down
2 changes: 1 addition & 1 deletion lib/Config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ module.exports = function compileDatabaseConfig(db) {
};
conf.redis = db.redis.default;
return conf;
}
};

6 changes: 2 additions & 4 deletions lib/Config/mail.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
/* global appdir */
module.exports = function compileMailCongif(conf) {
return {
transporter: {
Expand All @@ -10,8 +9,7 @@ module.exports = function compileMailCongif(conf) {
ignoreTLS: true

},
from: conf.from.name + '<' + conf.from.address + '>',
root: appdir
from: conf.from.name + ' <' + conf.from.address + '>'
};
}
};

4 changes: 2 additions & 2 deletions lib/shell/lib/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ var exportRequest = (function exportRequest() {
var Request = function Request(shell, command) {
this.shell = shell;
this.command = command;
}
};

var cleanAnswer = function cleanAnswer(answer) {
if (answer.substr(-1, 1) === '\n') {
answer = answer.substr(0, answer.length - 1);
}
return answer;
}
};

/*
Ask one or more questions
Expand Down
4 changes: 2 additions & 2 deletions lib/shell/lib/Response.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var response = (function exportResponse(_super) {
var Response = function Response(settings) {
this.shell = settings.shell;
Response.super_.call(this, settings);
}
};
util.inherits(Response, _super);

Response.prototype.pad = pad;
Expand All @@ -20,5 +20,5 @@ var response = (function exportResponse(_super) {

})(styles);

module.exports = response
module.exports = response;

4 changes: 2 additions & 2 deletions lib/shell/lib/Styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ var _fn = function _fn(color) {
Styles.prototype[color] = function prototypeColor(text) {
return this.color(color, text);
};
return Styles.prototype[color]
return Styles.prototype[color];
};
each(colors, function eachColors(code, color) {
_fn(color);
})
});

Styles.prototype.nocolor = function nocolor(text) {
return this.color(null, text);
Expand Down
2 changes: 1 addition & 1 deletion lib/shell/lib/routes/shellOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Ensure the current process is running in shell mode.

module.exports = function shellOnly(req, res, next) {
if (!req.shell.isShell) {
res.red('Command may only be executed inside a running shell');
res.red('Command may only be executed inside a running shell').ln();
res.prompt();
return;
}
Expand Down

0 comments on commit 6f7f7e5

Please sign in to comment.