If you are using today’s most popular web framework such as Angular, they try to obfuscate and minimize the front end code. Such front end code may not be easy to read by humans compared to seeing a repo so I’d still keep front end repos private. You may also not want to allow others to easily fork your front end code. But you are right, nothing sensitive should be sent as front end code including business logic so you might as well think of it as a public repo.