mplus-studio / AGENTS.md
joelsefanja's picture
Deploy Mplus Studio
d1bff6b verified
|
Raw
History Blame Contribute Delete
1.12 kB
# Agent Instructions
Follow `coding-guidlines.md` for all code changes in this repository.
Important local rules:
- File suffixes are only used for `.spec` files. Do not create `.component.ts` or `.service.ts` files.
- Event handlers are prefixed with `on`.
- Do not use one-letter variable names.
- Use injected property names that describe the injected dependency.
- Keep class members ordered as `public`, then `protected`, then `private`. Keep methods in the same order after the constructor.
- Do not use `as` casts; use `<T>` casts.
- Use `undefined`, not `null`.
- Always use braces for `if` statements.
- Prefer `for..of` over `forEach`.
- Do not call methods from templates; use signals, computed values, or direct properties.
- Do not use `this` in templates.
- Do not root-scope services automatically. If a file has no injected dependencies, make it a helper instead of a service.
- HTML attributes go on separate lines for larger elements, ordered as class, style bindings, class bindings, events.
- Source code and comments use English.
- Remove unused imports, files, and properties in files you touch.