Commit d0bc28cd authored by Florian Müllner's avatar Florian Müllner

lint: Don't require indent for GObject.registerClass()

The function will eventually be replaced with decorators, and we don't
want to re-indent all GObject class when that happens, so allow class
declarations with no indent:

    GObject.registerClass(
    class Foo extends GObject.Object {
    });

https://gitlab.gnome.org/GNOME/gjs/merge_requests/272

[skip eslint] as this will change the eslint outcome.
parent cbf36f6d
......@@ -25,6 +25,9 @@
"error",
4,
{
"ignoredNodes": [
"CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child"
],
"MemberExpression": "off"
}
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment