diff --git a/.eslintrc b/.eslintrc
index b517ef8ef9bc5eeb5c42ac60c6e8ba0dcd5ad1bb..14f7b958882346881a1b16519674004f4816409c 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -33,8 +33,9 @@
     "no-unused-vars": [2, {"vars": "local", "args": "none"}],
     "one-var": [2, "never"],
     "semi": [2, "always"],
-    "space-after-keywords": [2, "always", {"checkFunctionKeyword": true}],
+    "space-after-keywords": [2, "always"],
     "space-before-blocks": [2, "always"],
+    "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
     "space-in-brackets": [2, "never"],
     "space-in-parens": [2, "never"],
     "spaced-line-comment": [2, "always"],
diff --git a/core/misc/dialog/dialog.ajax.js b/core/misc/dialog/dialog.ajax.js
index 2139872cd63877d6dfd3c24d536a40c52a121c80..e786d5a16bccf9f7a7b60583d0293241a4bf8172 100644
--- a/core/misc/dialog/dialog.ajax.js
+++ b/core/misc/dialog/dialog.ajax.js
@@ -37,7 +37,7 @@
 
       var originalClose = settings.dialog.close;
       // Overwrite the close method to remove the dialog on closing.
-      settings.dialog.close = function(event) {
+      settings.dialog.close = function (event) {
         originalClose.apply(settings.dialog, arguments);
         $(event.target).remove();
       };
diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js
index c2c7ac375f5c28b55dec9c3c150278572fca4fb2..08e5688c1260e9f9935942761ffa47c4e61c9ee0 100644
--- a/core/modules/tour/js/tour.js
+++ b/core/modules/tour/js/tour.js
@@ -23,7 +23,7 @@
    */
   Drupal.behaviors.tour = {
     attach: function (context) {
-      $('body').once('tour').each(function() {
+      $('body').once('tour').each(function () {
         var model = new Drupal.tour.models.StateModel();
         new Drupal.tour.views.ToggleTourView({
           el: $(context).find('#toolbar-tab-tour'),