[gnome-shell-extensions/wip/fmuellner/lint-ci: 4/18] lint: Enforce arrow notation



commit 8ae84703a4d0a37d81608255700f19616560acb8
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-extensions/merge_requests/50

 lint/eslintrc-shell.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
index d2157c2..6064dcb 100644
--- a/lint/eslintrc-shell.json
+++ b/lint/eslintrc-shell.json
@@ -1,9 +1,11 @@
 {
     "rules": {
+        "arrow-spacing": "error",
         "object-curly-spacing": [
             "error",
             "always"
-        ]
+        ],
+        "prefer-arrow-callback": "error"
     },
     "globals": {
         "global": false,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]