ESlint brace-style

v1.18.x
Peter Jaszkowiak 8 years ago
parent 52f2028206
commit 879470f417

@ -10,16 +10,16 @@
"exports": "always-multiline",
"functions": "never"
}],
// "linebreak-style": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
// "linebreak-style": "off",
// "one-var": "off",
// "no-undef": "off",
"max-len": "off",
"no-new": "off",
"max-nested-callbacks": "off",
"no-mixed-requires": "off",
"brace-style": "off",
// "brace-style": "off",
"max-statements-per-line": "off",
"no-unused-vars": "off",
"no-mixed-spaces-and-tabs": "off",

@ -214,8 +214,7 @@
}
if (n > 999999) {
return (n / 1000000).toFixed(1) + 'm';
}
else if(n > 999) {
} else if(n > 999) {
return (n / 1000).toFixed(1) + 'k';
}
return n;

@ -513,8 +513,11 @@ install.setup = function (callback) {
if (err) {
return next(err);
}
if (!uptodate) { upgrade.upgrade(next); }
else { next(); }
if (!uptodate) {
upgrade.upgrade(next);
} else {
next();
}
});
},
], function (err, results) {

@ -66,8 +66,7 @@ var opts = {
} else {
opts.streams.log.f = process.stdout;
}
}
else {
} else {
Logger.close(opts.streams.log);
}
};

Loading…
Cancel
Save