Skip to content

Node.js based forum software built for the modern web

style(eslint): enforcing newline on chained calls

Julian Lam95cc27f1ffc3
diff --git a/.eslintrc b/.eslintrc
index 117ea3db0a..d655626005 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -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"],
diff --git a/src/admin/search.js b/src/admin/search.js
index a0ab3895c8..a49e6ea1ff 100644
--- a/src/admin/search.js
+++ b/src/admin/search.js
@@ -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 = {};