[MediaWiki-l] Re: Replacing jQuery's hasClass() in MW extension JS code

2021-08-17 Thread Yaron Koren
Hi James, Thank you, that is helpful. I'll look through my code; my guess is that the best solution (at least for now) is to add that "eslint-disable" call to many or even most of my hasClass() calls. By the way, I think the current wording in the documentation is misleading: the page I linked

[MediaWiki-l] Re: Replacing jQuery's hasClass() in MW extension JS code

2021-08-14 Thread James Forrester
[Moving to wikitech-l; mediawiki-l is a little off-topic.] On Mon, 26 Jul 2021 at 21:27, Yaron Koren wrote: > Hi, > > I've been trying to get rid of the ESLint warnings for the JavaScript code > in some of my extensions, when they go through Jenkins validation. One > warning that appears fairly