diff options
author | Evan Welsh <contact@evanwelsh.com> | 2022-07-05 12:13:15 -0400 |
---|---|---|
committer | Evan Welsh <contact@evanwelsh.com> | 2022-07-06 13:40:44 -0400 |
commit | 9ebde6ca2d226d0c6f693034a68166a541f18db4 (patch) | |
tree | 3805dd96d0f93acae1dc9f43cb809af5b68cdae4 /lint | |
parent | 4257fc9522beaa9b946e24fcf7b1f249f3093933 (diff) | |
download | gnome-shell-9ebde6ca2d226d0c6f693034a68166a541f18db4.tar.gz |
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>
Diffstat (limited to 'lint')
-rw-r--r-- | lint/eslintrc-shell.yml | 3 |
1 files changed, 3 insertions, 0 deletions
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 |