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



commit be7b3ebc48032e6322c6f2ab08c114881f054115
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.

 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]