[polari/wip/fmuellner/more-style-changes: 2/3] style: Drop customized key-spacing rule



commit 64bc2084f51121aa8458cd07c36173e96c5141a9
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 28 20:15:40 2019 +0100

    style: Drop customized key-spacing rule
    
    This was added to align enum-like objects, but following the canonical
    single-space-after-colon style isn't terrible, so the diversion isn't
    worth it.
    
    https://gitlab.gnome.org/GNOME/polari/merge_requests/95

 lint/eslintrc-polari.json | 8 --------
 src/serverRoomManager.js  | 7 +++----
 2 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/lint/eslintrc-polari.json b/lint/eslintrc-polari.json
index 4400389..0a2d602 100644
--- a/lint/eslintrc-polari.json
+++ b/lint/eslintrc-polari.json
@@ -18,14 +18,6 @@
                 "MemberExpression": "off"
             }
         ],
-        "key-spacing": [
-            "error",
-            {
-                "mode": "minimum",
-                "beforeColon": false,
-                "afterColon": true
-            }
-        ],
         "no-restricted-properties": [
             "error",
             {
diff --git a/src/serverRoomManager.js b/src/serverRoomManager.js
index 51ba887..0a4a9a7 100644
--- a/src/serverRoomManager.js
+++ b/src/serverRoomManager.js
@@ -95,10 +95,9 @@ Signals.addSignalMethods(ServerRoomManager.prototype);
 
 
 const RoomListColumn = {
-    CHECKED:   0,
-    NAME:      1,
-    COUNT:     2,
-
+    CHECKED: 0,
+    NAME: 1,
+    COUNT: 2,
     SENSITIVE: 3,
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]