mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
ESlint brace-style
This commit is contained in:
@@ -10,16 +10,16 @@
|
|||||||
"exports": "always-multiline",
|
"exports": "always-multiline",
|
||||||
"functions": "never"
|
"functions": "never"
|
||||||
}],
|
}],
|
||||||
// "linebreak-style": "off",
|
|
||||||
"import/no-unresolved": "off",
|
"import/no-unresolved": "off",
|
||||||
"import/no-extraneous-dependencies": "off",
|
"import/no-extraneous-dependencies": "off",
|
||||||
|
// "linebreak-style": "off",
|
||||||
// "one-var": "off",
|
// "one-var": "off",
|
||||||
// "no-undef": "off",
|
// "no-undef": "off",
|
||||||
"max-len": "off",
|
"max-len": "off",
|
||||||
"no-new": "off",
|
"no-new": "off",
|
||||||
"max-nested-callbacks": "off",
|
"max-nested-callbacks": "off",
|
||||||
"no-mixed-requires": "off",
|
"no-mixed-requires": "off",
|
||||||
"brace-style": "off",
|
// "brace-style": "off",
|
||||||
"max-statements-per-line": "off",
|
"max-statements-per-line": "off",
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "off",
|
||||||
"no-mixed-spaces-and-tabs": "off",
|
"no-mixed-spaces-and-tabs": "off",
|
||||||
|
|||||||
@@ -214,8 +214,7 @@
|
|||||||
}
|
}
|
||||||
if (n > 999999) {
|
if (n > 999999) {
|
||||||
return (n / 1000000).toFixed(1) + 'm';
|
return (n / 1000000).toFixed(1) + 'm';
|
||||||
}
|
} else if(n > 999) {
|
||||||
else if(n > 999) {
|
|
||||||
return (n / 1000).toFixed(1) + 'k';
|
return (n / 1000).toFixed(1) + 'k';
|
||||||
}
|
}
|
||||||
return n;
|
return n;
|
||||||
|
|||||||
@@ -513,8 +513,11 @@ install.setup = function (callback) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
if (!uptodate) { upgrade.upgrade(next); }
|
if (!uptodate) {
|
||||||
else { next(); }
|
upgrade.upgrade(next);
|
||||||
|
} else {
|
||||||
|
next();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
], function (err, results) {
|
], function (err, results) {
|
||||||
|
|||||||
@@ -66,8 +66,7 @@ var opts = {
|
|||||||
} else {
|
} else {
|
||||||
opts.streams.log.f = process.stdout;
|
opts.streams.log.f = process.stdout;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
Logger.close(opts.streams.log);
|
Logger.close(opts.streams.log);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user