mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
ESlint brace-style
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user