Skip to content

Files

Latest commit

e89a059 · Jan 7, 2025

History

History
39 lines (24 loc) · 941 Bytes

style-guide.md

File metadata and controls

39 lines (24 loc) · 941 Bytes

Angular Coding Style Guide

Version 1.0.0, last updated on 2024-12-13.

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 for these endings: {css,html,js,json,md,scss,ts}
  • 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.