Component annotation arguments ordering
Rule id
component-annotation-arguments-ordering
Severity
Style
Description
Enforces Angular @Component
annotation arguments ordering.
The value for order
may be an array consisting of the following strings (default order listed):
- selector
- templates
- styles
- directives
- pipes
- providers
- encapsulation
- visibility
- exports
- change-detection
Config example
dart_code_metrics:
...
rules:
...
- component-annotation-arguments-ordering:
order:
- selector
- templates
- change-detection