bitcrowd / tickety-tick

A browser extension that helps you name branches and write better commit messages
MIT License
57 stars 10 forks source link

Update dependencies part 1 #396

Closed klappradla closed 3 months ago

klappradla commented 10 months ago

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 the fix option to insert the missing commas.