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>
This commit is contained in:
parent
4257fc9522
commit
9ebde6ca2d
@ -4,6 +4,9 @@ rules:
|
|||||||
- properties: never
|
- properties: never
|
||||||
allow: [^vfunc_, ^on_]
|
allow: [^vfunc_, ^on_]
|
||||||
consistent-return: error
|
consistent-return: error
|
||||||
|
eqeqeq:
|
||||||
|
- error
|
||||||
|
- smart
|
||||||
key-spacing:
|
key-spacing:
|
||||||
- error
|
- error
|
||||||
- mode: minimum
|
- mode: minimum
|
||||||
|
Loading…
Reference in New Issue
Block a user