Skip to content

package:dart_style v3.1.3

Latest

Choose a tag to compare

@kevmoo kevmoo released this 13 Nov 21:41
· 2 commits to main since this release
de7e726
  • No longer format imports with configurations and a prefix in the wrong order.
    The parser used to accept this without error even though it violated the
    language spec. The parser is being fixed, so the formatter will no longer
    accept or format code like:
    import 'foo.dart' as prefix if (cond) 'bar.dart';
  • Don't force a space between ? and . if a null-aware element contains a
    dot shorthand.
  • Require analyzer: '>=8.2.0 <10.0.0'.
  • Require args: ^2.5.0.
  • Require sdk: ^3.9.0.

Bug fixes

  • Respect @dart= version comments when determining which >3.7 style to apply.
    The formatter correctly used those comments to switch between the old short
    and new tall style, but ignored them for language versioned style rule changes
    after 3.7. Now the language version of the file is consistently respected for
    all style rules (#1762).