[gnome-shell] lint: Enforce arrow notation
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] lint: Enforce arrow notation
- Date: Fri, 12 Jul 2019 16:07:41 +0000 (UTC)
commit 5f77cdb0b96dc0c69ff05e53c1d5d956c6972b6f
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jan 28 01:39:54 2019 +0100
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": [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]