From 95cc27f1ffc3955b0d3f70c8a40f9b6c5d4f461b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 8 Nov 2018 11:36:00 -0500 Subject: [PATCH] style(eslint): enforcing newline on chained calls --- .eslintrc | 1 - src/admin/search.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {};