Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 877 Bytes

style-guide.md

File metadata and controls

38 lines (23 loc) · 877 Bytes

Angular Style Guide

Version 1.0.0, last updated on 2024-11-18.

This document contains a general style guide for Angular projects.

There are specific style guides for:

Do

Must do

  • run Prettier on save and before committing
    • use config from /.prettierrc.json
  • use LF endings
  • use UTF-8 (no BOM)

Should do

  • KISS (Keep It Short & Simple)
  • Be consistent

Don't

  • DRY (Don't Repeat Yourself) in general, unless it's a reasonably small piece of code that changes slightly. Don't force abstraction in every case.

Resources

ToDos

  • @ToDo Add style guide for unit (JEST) and e2e (Cypress) tests.