refactor(rules): keep Angular index focused
This commit is contained in:
1 parent
5c25b4fe5a
commit
c91505a568
2 files changed
+15
-36
No files matched your search
@@ -1,5 +1,8 @@
|
||||
## Components
|
||||
|
||||
* Prefer standalone components, directives, and pipes for new work. Avoid introducing `NgModule` unless the existing architecture requires it.
|
||||
* Keep components small; move substantial business logic to a focused service or domain layer.
|
||||
* Keep dependencies explicit and follow the feature architecture. Avoid god components, god services, unnecessary wrappers, and abstractions without a concrete need.
|
||||
* Use `ChangeDetectionStrategy.OnPush` unless there is a concrete reason not to.
|
||||
* Prefer signal-based state for local component state.
|
||||
* Prefer `computed` for derived state.
|
||||
|
||||
Reference in new issue
Block a user