Would you be open to adding Prettier to this project?

Issue #158 new
Ian Copp created an issue

Prettier is a tool that auto-formats code in a consistent manner. It's possible to run it locally in an editor to do things like nicely format all code every time a file is saved, but the more useful part for this project would be that it can be set up to use Bitbucket Pipelines and automatically run every time the master branch is updated..

A simple example of this would be how in core.js there's some places with function(){ and some places with function() {. A Prettier pipeline configuration would unify all of them as being one or the other without requiring any manual interventions.

This would be pretty trivial to set up, but I'd want to make sure any PR I submit is timed properly not to overlap with other in progress work, since the very first formatting run would have a bunch of small formatting changes everywhere from those initial consistency changes. Other than that initial timing issue it should be no-hassle to use (my workplace uses it across JS repos for financial web software and we've never had any issues).

Comments (1)

  1. Log in to comment