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