The dependencies in this project are pretty outdated. This is the start of a small series to get this back up to speed. The aim is to also make applying security patches easier through that.
Changes in this PR:
Update browserlist DB
Update babel packages
Update webpack packages
Update typescript
Update prettier and related packages
Fix code formatting issues
The most interesting part here is probably the update of prettier and untangling that we were requiring it as a dev dependency and a runtime dependency. The latter most likely came from reverting a commit which years ago extracted the formatter into a separate package.
As of version 3 of prettier, the default setting for trailing commas is "all", which boils down to: insert trailing commas whenever possible in any multi-line comma-separated list (see their docs). In modern JS, this also includes function calls (see MDN for a reference). A motivation for this is probably cleaner diffs.
I ran prettier with the fix option to insert the missing commas.
The dependencies in this project are pretty outdated. This is the start of a small series to get this back up to speed. The aim is to also make applying security patches easier through that.
Changes in this PR:
The most interesting part here is probably the update of
prettier
and untangling that we were requiring it as a dev dependency and a runtime dependency. The latter most likely came from reverting a commit which years ago extracted the formatter into a separate package.As of version 3 of
prettier
, the default setting for trailing commas is "all", which boils down to: insert trailing commas whenever possible in any multi-line comma-separated list (see their docs). In modern JS, this also includes function calls (see MDN for a reference). A motivation for this is probably cleaner diffs.I ran
prettier
with thefix
option to insert the missing commas.