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
This commit is contained in:
Florian Müllner
2019-01-28 01:44:16 +01:00
parent f7cbd0d600
commit 1141d996d9
+1
View File
@@ -21,6 +21,7 @@
{
"ignoredNodes": [
"ArrayExpression > ObjectExpression",
"CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child",
"ConditionalExpression"
],
"MemberExpression": "off"