I find it helpful to stick to a few guiding principles while working on front-end code. Here are my thoughts on how to keep your project clean, scalable, and team-friendly.