From 1141d996d960ced25ed2c7341c0d36e82a13a83c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 28 Jan 2019 01:44:16 +0100 Subject: [PATCH] lint: Don't require indent for GObject.registerClass() That function will eventually be replaced with decorators, and we don't want to re-indent all GObject classes when that happens, so allow class declarations with no indent: GObject.registerClass( class Foo extends GObject.Object { }); https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50 --- lint/eslintrc-shell.json | 1 + 1 file changed, 1 insertion(+) diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json index 063a73f3..7deed619 100644 --- a/lint/eslintrc-shell.json +++ b/lint/eslintrc-shell.json @@ -21,6 +21,7 @@ { "ignoredNodes": [ "ArrayExpression > ObjectExpression", + "CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child", "ConditionalExpression" ], "MemberExpression": "off"