Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (26 loc) · 639 Bytes

component-annotation-arguments-ordering.mdx

File metadata and controls

32 lines (26 loc) · 639 Bytes

import RuleDetails from '@site/src/components/RuleDetails';

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 {#config-example}

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