Skip to content

Fix/update prettier script

Mike Greiling requested to merge mg-update-prettier-script into master

What does this MR do?

This updates our prettier script in the following ways:

  • Fixes incorrect exit code when code is found which needs formatting
  • Uses prettier's native API to check for .prettierignore and parser settings instead of checking manually
  • Uses async I/O functions to speed up script on slower filesystems or storage devices
  • Disables prettier for stylesheets (until we can resolve conflicts with our linter)

What are the relevant issue numbers?

Related: #52764 (closed)

Does this MR meet the acceptance criteria?

Edited by Mike Greiling

Merge request reports