Fix/update prettier script
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
andparser
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?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides
Edited by Mike Greiling