combinators_ordering

Group: style

Maturity: stable

Dart SDK: >= 2.19.0 • (Linter v1.26.0)

Since info is static, may be stale
has-fix

View all Lint Rules

Using the Linter

DO sort combinator names alphabetically.

BAD:

import 'a.dart' show B, A hide D, C;
export 'a.dart' show B, A hide D, C;

GOOD:

import 'a.dart' show A, B hide C, D;
export 'a.dart' show A, B hide C, D;

Usage

To enable the combinators_ordering lint, add combinators_ordering under linter > rules in your analysis_options.yaml file:

linter:
  rules:
    - combinators_ordering