[gjs/ewlsh/update-eslint] Update dangling comma preferences for ESLint v6. - Allow programmer to decide to use dangling commas



commit 17ef5cee6cbeb34e2265f21bf09bea5d8e33d246
Author: Evan Welsh <noreply evanwelsh com>
Date:   Mon Jun 22 19:23:03 2020 -0500

    Update dangling comma preferences for ESLint v6.
    - Allow programmer to decide to use dangling commas with functions.

 .eslintrc.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 3fa6b86b..ce05880f 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -24,7 +24,9 @@ rules:
   #     allow: [^vfunc_, ^on_, _instance_init]
   comma-dangle:
     - error
-    - always-multiline
+    - arrays: always-multiline
+      objects: always-multiline
+      functions: only-multiline
   comma-spacing:
     - error
     - before: false


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