[gnome-shell-extensions/wip/fmuellner/lint-ci: 9/17] lint: Don't require indent for GObject.registerClass()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/fmuellner/lint-ci: 9/17] lint: Don't require indent for GObject.registerClass()
- Date: Mon, 28 Jan 2019 05:41:12 +0000 (UTC)
commit 5fd4393d6e0372b4d51dde5da70a989a8c7e7cc1
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jan 28 01:44:16 2019 +0100
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 {
});
lint/eslintrc-shell.json | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
index 063a73f..7deed61 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]