Optionalconfig: {ReadonlycategoryRule category for grouping.
ReadonlydescriptionRule description explaining what it checks.
ReadonlyidUnique rule identifier (scoped to plugin). Format: "plugin-name:rule-name" (e.g., "angular-standalone:component-not-standalone")
ReadonlynameHuman-readable rule name.
ReadonlyseverityRule severity level.
ReadonlytagsTags for filtering and search.
Analyze a source file and return findings.
Analysis context with file, project, and API access
Promise resolving to array of analysis results
Analysis rule
angular:presentational-component-violation: reports components that should be presentational but contain business logic, service dependencies or state management. Presentational components render UI and leave business logic to their container components, communicating through inputs and outputs.Detection targets:
inject()..subscribe()calls in lifecycle hooks withouttakeUntilDestroyed.@Outputoroutput().Dialog components (see DialogDetectionConfig) are skipped.
Example