Page MenuHomePhabricator

Make use of ES6 in Maps(Kartographer) Extension
Closed, ResolvedPublic

Description

This ticket is 'stalled' until T342864: Replace jsduck with JSDoc3 in Kartographer is done.

The support for ES5 only browsers has been dropped with T178356: Raise Grade A JavaScript requirement from ES5 (2009) to ES6 (2015) we can upgrade the code used in our projects to ES6,

This can mainly be done by bumping the eslint rule set applied on the source from wikimedia/client-es5 to wikimedia/client-es6 in the .eslintrc.json file. Then the linters can run with autofixes.
It's also advisable to bump the core requirement in the extensions.json to at least "MediaWiki": ">= 1.41.0" if the code changes are user facing.

Event Timeline

MareikeHeuerWMDE changed the task status from Open to Stalled.Aug 1 2023, 12:40 PM
MareikeHeuerWMDE updated the task description. (Show Details)
WMDE-Fisch changed the task status from Stalled to Open.Aug 15 2023, 8:56 AM
WMDE-Fisch subscribed.

JSDuck was replaced with JSDoc so this ticket can move forward now.

Change 940185 had a related patch set uploaded (by WMDE-Fisch; author: Mareike Heuer):

[mediawiki/extensions/Kartographer@master] Convert Maps(Kartographer) extension to ES6

https://gerrit.wikimedia.org/r/940185

Change 940185 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Convert Maps(Kartographer) extension to ES6

https://gerrit.wikimedia.org/r/940185