- Issue created by @drunken monkey
- 🇬🇧United Kingdom jonathan1055
I'm interested to see what you change to fix this. I also have
error Prefer matches to $.is jquery/no-is
for source lines that were using.is(':checked')
- Status changed to Needs review
8 months ago 11:37am 21 April 2024 - 🇦🇹Austria drunken monkey Vienna, Austria
Created this MR which should fix this.
However, not trivial to find out what
Prefer matches to $.is
is supposed to mean, for a JS non-expert. - 🇬🇧United Kingdom jonathan1055
Yes JS is one of the mysteries I understand the least about :-)
If found https://github.com/wikimedia/eslint-plugin-no-jquery/blob/master/docs/ru... which I think is explaining the rule.I presume you have javascript test coverage for the behaviours function you are changing? Would it be worth making an incorrect change, eg swapping over the 'enabled' and 'disabled' text, to prove it?
- Status changed to Fixed
8 months ago 10:32am 4 May 2024 - 🇦🇹Austria drunken monkey Vienna, Austria
No, I don’t think these are covered by our
FunctionalJavascript
tests. I just tried it out manually and it works fine.
Thanks for finding the docs! However, the “correct code” examples they give do not work for me, and also aren’t consistent with the error message that saysmatches()
should be used instead. So, they don’t seem very helpful.Anyways, I think we can just merge this, should be fine.
-
drunken monkey →
committed e05d2936 on 8.x-1.x
Issue #3442296 by drunken monkey, jonathan1055: Fixed Javascript code...
-
drunken monkey →
committed e05d2936 on 8.x-1.x
Automatically closed - issue fixed for 2 weeks with no activity.