Siget uses PrettierDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/kevinrodriguezmorales/siget/llms.txt
Use this file to discover all available pages before exploring further.
^3.8.1 for consistent, automated code formatting across all TypeScript source files and Angular HTML templates. A single .prettierrc file at the project root contains the complete configuration, keeping formatting rules explicit and easy to adjust.
Configuration File
Options Reference
| Option | Value | Description |
|---|---|---|
printWidth | 100 | Maximum line length before Prettier wraps to the next line |
singleQuote | true | Use single quotes (') instead of double quotes (") in TypeScript and JavaScript files |
parser (html override) | angular | Use the Angular-aware HTML parser for all *.html files |
The
angular parser understands Angular-specific template syntax — including structural directives like *ngFor and *ngIf, two-way bindings like [(ngModel)], event bindings like (click), and property bindings like [disabled]. Using the default html parser would mis-format or break these expressions.Running Prettier
You can invoke Prettier directly vianpx or through any script you add to package.json.
Editor Integration
The recommended way to use Prettier in day-to-day development is via the Prettier - Code formatter extension for Visual Studio Code (esbenp.prettier-vscode). Enable format-on-save in your workspace settings to apply formatting automatically every time you save a file:
EditorConfig
Siget also includes an.editorconfig file at the project root. EditorConfig handles low-level editor settings — such as indentation style, indentation size, end-of-line character, and trailing newlines — before Prettier runs. The two tools complement each other: EditorConfig normalises what the editor inserts as you type, while Prettier reformats the full file on save.
| Section | Setting | Value | Purpose |
|---|---|---|---|
[*] | indent_style | space | All files use spaces, not tabs |
[*] | indent_size | 2 | Two-space indentation across the project |
[*] | insert_final_newline | true | Files always end with a newline |
[*] | trim_trailing_whitespace | true | Trailing spaces are stripped on save |
[*.ts] | quote_type | single | TypeScript files prefer single quotes |
[*.md] | max_line_length | off | No line-length limit in Markdown files |
[*.md] | trim_trailing_whitespace | false | Trailing spaces in Markdown files are preserved (used for line breaks) |