Plugin 'jsdoc' fails to load declared in '.eslint.json'

Viktoria Hillerud <[email protected]>
Newsgroups gmane.science.linguistics.wikipedia.technical
Message-ID <CAL=ZoLJX0mUgaD88aqM7NkBqenhNxR_gPCYXqDDS16ur5q_U7Q@mail.gmail.com>
Hi,

I'm working on the Wikispeech extension for MediaWiki and I'm currently
running into an ESLint-related issue when I run npm run test Here's the
error:

Warning: Failed to load plugin 'jsdoc' declared in '.eslintrc.json »
eslint-config-wikimedia/server » ./common » ./jsdoc': Invalid regular
expression flags
Referenced from: node_modules/eslint-config-wikimedia/jsdoc.json
Aborted due to warnings.

We are currently using *Node v18.19.1*, and it looks like
*[email protected]* pulls in *[email protected]*, which
requires *Node ≥ 20.11.0*? Is that perhaps why it crashes due to
unsupported regular expression flags in Node 18? Is it confirmed that
upgrading to Node 20+ is now required for the current Wikimedia ESLint
configuration?

Kind regards,
*Viktoria Hillerud Ahlbäck*
*Developer*
Wikimedia Sverige (WMSE)

_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.