[gjs: 2/5] lint: Enforce arrow spacing



commit 9208b1f71f8c4505fcffb57ee30220f483115c79
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Feb 19 17:37:28 2019 +0100

    lint: Enforce arrow spacing
    
    The arrow of arrow functions is not covered by the existing operator
    spacing rules. Add the corresponding rule to enforce a space before
    and after the arrow.
    
    https://gitlab.gnome.org/GNOME/gjs/merge_requests/272
    
    [skip eslint] as this will change the eslint outcome.

 .eslintrc.json | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/.eslintrc.json b/.eslintrc.json
index 5dca4532..06dfe1ee 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -12,6 +12,7 @@
             "error",
             "never"
         ],
+        "arrow-spacing": "error",
         "brace-style": "error",
         "comma-spacing": [
             "error",


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