style(eslint): enforcing newline on chained calls

v1.18.x
Julian Lam 6 years ago
parent c58a41ed72
commit 95cc27f1ff

@ -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 = {};

Loading…
Cancel
Save