From 78580bc3a84786896b2653287dd9ff04496a2a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 28 Feb 2019 18:26:00 +0100 Subject: [PATCH] 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 9546626b..1c602580 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", {