BB-1876: Fix code quality issues
This PR fixes code quality issues and enables quality check on builds.
Testing instructions:
- Review changes and make comments.
- Check that all CI checks are green.
- (Optional) Add random spaces/tabs/enters on a few ts and tsx files. Run
npm run lint
and check the errors. - (Optional) Run
npm run prettier
and check that the code was fixed, and no errors appear when runningnpm run lint
.
Reviewer: