Some ideas (courtesy @Chlod and @TheDJ):
-
functions to classesstriking for now, high effort - var to const/let
- $.Deferred() to Promise() (3 files)
- Note: mw.Api uses jQuery.Promise, resulting in even more uses of it than the 3 above. And do we want to start mixing jQuery.Promise and Promise? Maybe not.
- cleanup of that = this, (13 files)
- Once we switch to arrow functions, those will be really easy to convert. Can just change that to this without any .bind()ing
- conversion of function (){} to () => {} (24 files)
- $.when to Promise.all() (4 instances)
- concatenation to backticks, e.g. ${string} interpolation
Split from T324579: Enable ES6