mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
style(eslint): match operator-linebreak preferences
This commit is contained in:
committed by
Julian Lam
parent
89c025d102
commit
ba619c7ec8
@@ -65,9 +65,9 @@ Command.prototype.usage = function () {
|
||||
return humanReadableArgName(arg);
|
||||
});
|
||||
|
||||
var usage = '[options]'[optionColor]
|
||||
+ (this.commands.length ? ' [command]' : '')[subCommandColor]
|
||||
+ (this._args.length ? ' ' + args.join(' ') : '')[argColor];
|
||||
var usage = '[options]'[optionColor] +
|
||||
(this.commands.length ? ' [command]' : '')[subCommandColor] +
|
||||
(this._args.length ? ' ' + args.join(' ') : '')[argColor];
|
||||
|
||||
return usage;
|
||||
};
|
||||
@@ -90,10 +90,10 @@ Command.prototype.commandHelp = function () {
|
||||
}).join(' ');
|
||||
|
||||
return [
|
||||
cmd._name[subCommandColor]
|
||||
+ (cmd._alias ? ' | ' + cmd._alias : '')[subCommandColor]
|
||||
+ (cmd.options.length ? ' [options]' : '')[subOptionColor]
|
||||
+ ' ' + args[subArgColor],
|
||||
cmd._name[subCommandColor] +
|
||||
(cmd._alias ? ' | ' + cmd._alias : '')[subCommandColor] +
|
||||
(cmd.options.length ? ' [options]' : '')[subOptionColor] +
|
||||
' ' + args[subArgColor],
|
||||
cmd._description,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -27,10 +27,10 @@ function buildTargets() {
|
||||
return ' ' + _.padEnd('"' + tuple[0] + '"', length + 2).magenta + ' | ' + tuple[1];
|
||||
}).join('\n');
|
||||
console.log(
|
||||
'\n\n Build targets:\n'
|
||||
+ ('\n ' + _.padEnd('Target', length + 2) + ' | Aliases').green
|
||||
+ '\n ------------------------------------------------------\n'.blue
|
||||
+ output + '\n'
|
||||
'\n\n Build targets:\n' +
|
||||
('\n ' + _.padEnd('Target', length + 2) + ' | Aliases').green +
|
||||
'\n ------------------------------------------------------\n'.blue +
|
||||
output + '\n'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -88,8 +88,8 @@ function runUpgrade(upgrades, options) {
|
||||
|
||||
if (upgrades === true) {
|
||||
var tasks = Object.keys(steps);
|
||||
if (options.package || options.install
|
||||
|| options.plugins || options.schema || options.build) {
|
||||
if (options.package || options.install ||
|
||||
options.plugins || options.schema || options.build) {
|
||||
tasks = tasks.filter(function (key) {
|
||||
return options[key];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user