Following this style guide should give you a pretty solid foundation for an AngularJS codebase. Using Prettier and ESLint (with an AngularJS-friendly rule-set) will make a difference as well.
Comment by Diego Bernal on "Code Quality Tool for AngularJS application?" | Hashnode