[gnome-shell-extensions/wip/fmuellner/more-style-changes: 2/7] lint: Remove unused rules



commit 78580bc3a84786896b2653287dd9ff04496a2a1f
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 28 18:26:00 2019 +0100

    lint: Remove unused rules
    
    We picked those up from Polari, which had those for
    
     - object arrays:
        let foo = [
            { bar: 42,
              quz: true },
            { bar: 23,
              quz: false }
        ];
    
     - "enums":
    
        let Options = {
            ONE:   0,
            TWO:   1,
            THREE: 2
        };
    
    We don't have either of those, so drop the rules to minimise divergence
    with gjs.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/57

 lint/eslintrc-shell.json | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
index 9546626..1c60258 100644
--- a/lint/eslintrc-shell.json
+++ b/lint/eslintrc-shell.json
@@ -20,21 +20,12 @@
             4,
             {
                 "ignoredNodes": [
-                    "ArrayExpression > ObjectExpression",
                     "CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > 
ClassExpression:first-child",
                     "ConditionalExpression"
                 ],
                 "MemberExpression": "off"
             }
         ],
-        "key-spacing": [
-            "error",
-            {
-                "mode": "minimum",
-                "beforeColon": false,
-                "afterColon": true
-            }
-        ],
         "no-restricted-properties": [
             "error",
             {


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