From 9ebde6ca2d226d0c6f693034a68166a541f18db4 Mon Sep 17 00:00:00 2001 From: Evan Welsh Date: Tue, 5 Jul 2022 12:13:15 -0400 Subject: [PATCH] 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: --- lint/eslintrc-shell.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lint/eslintrc-shell.yml b/lint/eslintrc-shell.yml index 42a829a63..e0356b1e4 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