-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Component/s: ~ [Archived] Frontend Infrastructure
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Epic Link:
-
Sprint:S03E02 - Toledo
-
Git Pull Request:
Major update because this switches to Prettier (https://prettier.io/) for JS source formatting.
While Prettier doesn't exactly match our previous style (and furthermore is quite opinionated and with limited configurability), it will produce very consistent results with a low error rate. This is due to two factors: one is its pervasive use within the JS community means that most bugs have already been flushed out; the other is because it is really just an AST printer, which means that it isn't prone to the bugs we've seen in our own regex-based source formatter.