From 5f77cdb0b96dc0c69ff05e53c1d5d956c6972b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 28 Jan 2019 01:39:54 +0100 Subject: [PATCH] lint: Enforce arrow notation We replaced all Lang.bind() calls with arrow functions or the standardized Function.prototype.bind(), at least for the former eslint has some options to ensure that the old custom doesn't sneak back in. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/609 --- lint/eslintrc-shell.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json index f2524a6df..c5bed8690 100644 --- a/lint/eslintrc-shell.json +++ b/lint/eslintrc-shell.json @@ -3,7 +3,8 @@ "object-curly-spacing": [ "error", "always" - ] + ], + "prefer-arrow-callback": "error" }, "overrides": [