In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
This commit also changes the TextReplay.drawText() signature, and moves geometry calculation into drawText(). This improves performance where no text needs to be rendered (TextStyle.getText() == ''), which is used often in applications.