I think this time I’ve really fixed it!
And I added tests, so next time I try to commit code with errors in it, I’ll get an email from github, hopefully before anyone else notices.
EDIT: Ooops. That was a different repo that was passing the tests, but I sholud have it sorted in a few minutes.
EDIT: Well, I think the code works, but it’s still not passing tests as whined about here: How to convince eslint that settings are defined? wah
Thanks to @CvX (How to convince eslint that settings are defined? - #5 by CvX) the day is saved.
I can’t remember who once paid for this, but they aren’t paying now. If you’re finding this useful, you can give me whatever it’s worth to you via methods on my not yet launched new web site.