Skip to main content

component-annotation-arguments-ordering

added in: 1.6.0
⚙️⚠️
Pro+

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

analysis_options.yaml
dart_code_metrics:
rules:
- component-annotation-arguments-ordering:
order:
- selector
- templates
- change-detection