Skip to content

Style guides

marksvc edited this page Sep 25, 2023 · 3 revisions

TypeScript follows the Angular Style Guide. This is opinionated not only about things like file name conventions but also file and folder structure.

We use Prettier with a pre-commit hook.

Microsoft .NET library design guidelines.

In Scripture Forge TypeScript files, consider following this order in a class:

  1. public static fields
  2. @Input, @Output, and @ViewChild fields
  3. public fields, private fields
  4. constructor
  5. getters and setters
  6. public methods
  7. private methods
Clone this wiki locally