mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
style(eslint): enforcing newline on chained calls
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
}],
|
||||
"no-empty": ["error", { "allowEmptyCatch": true }],
|
||||
"no-underscore-dangle": "off",
|
||||
"newline-per-chained-call": "off",
|
||||
"no-console": "off",
|
||||
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
|
||||
"strict": ["error", "global"],
|
||||
|
||||
@@ -56,7 +56,8 @@ function simplify(translations) {
|
||||
function nsToTitle(namespace) {
|
||||
return namespace.replace('admin/', '').split('/').map(function (str) {
|
||||
return str[0].toUpperCase() + str.slice(1);
|
||||
}).join(' > ').replace(/[^a-zA-Z> ]/g, ' ');
|
||||
}).join(' > ')
|
||||
.replace(/[^a-zA-Z> ]/g, ' ');
|
||||
}
|
||||
|
||||
var fallbackCacheInProgress = {};
|
||||
|
||||
Reference in New Issue
Block a user