[gnome-shell] ci: Switch ESLint rule eqeqeq to smart mode



commit 9ebde6ca2d226d0c6f693034a68166a541f18db4
Author: Evan Welsh <contact evanwelsh com>
Date:   Tue Jul 5 12:13:15 2022 -0400

    ci: Switch ESLint rule eqeqeq to smart mode
    
    This allows comparisons like != null and == null while still erroring
    on other usages of == and !=.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2363>

 lint/eslintrc-shell.yml | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/lint/eslintrc-shell.yml b/lint/eslintrc-shell.yml
index 42a829a63b..e0356b1e43 100644
--- a/lint/eslintrc-shell.yml
+++ b/lint/eslintrc-shell.yml
@@ -4,6 +4,9 @@ rules:
     - properties: never
       allow: [^vfunc_, ^on_]
   consistent-return: error
+  eqeqeq:
+    - error
+    - smart
   key-spacing:
     - error
     - mode: minimum


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