better_imports 1.4.5 copy "better_imports: ^1.4.5" to clipboard
better_imports: ^1.4.5 copied to clipboard

A CLI tool to automatically sort and organize Dart imports in your project files, supporting custom rules, configs, and formatting options.

1.4.5 #

  • Do not process barrel files with export statements

1.4.4 #

  • Fix converting relative paths to project package imports

1.4.3 #

  • Bump sdk version for dart formatter to 3.9.2

1.4.2 #

  • Updated project name from pubspec.yaml if it differs from the currentfolder name

1.4.0 #

  • Remove default folders in cfg to enable support for different project structures

1.3.9 #

  • Possibly prevent adding an additial empty line after imports

1.3.8 #

  • Fixed sorting packages that contained "flutter_" being wrongly categorized as flutter imports

1.3.7 #

  • Make --files paths system independent

1.3.6 #

  • Fix --files filtering

1.3.5 #

  • Update description in pubspec.yaml for better clarity and add example file

1.3.4 #

  • Prevent adding new line after imports

1.3.3 #

  • Update some dependencies
  • Drop dart format option due to inconsistensis

1.3.1 #

  • Update SDK version when using DartFormatter to a newer Version

1.3.0 #

  • Enhance file path filtering and update DartFormatter usage
  • Update version to 1.3.0 and enhance file path filtering in documentation

1.2.1 #

  • Added better linux instructions

1.2.0 #

  • Upped dart version and dependencies

1.1.2 #

  • Fixed reading dart fmt flag from config

1.1.1 #

  • Optimizations and Refactoring of String operations

1.1.0 #

  • Added an option to disable dart formatter
    • only the imports are always formatted, rest of the code is untouched
  • Rewrote the sorting logic
  • Added new Tests

1.0.4 #

  • Added dry run support
  • Added support for library directives

1.0.3 #

  • Moved all files in src folder to hide them from importing.

1.0.2 #

  • Dropped all barrel files to not export anything.

1.0.1 #

  • Updated readme with the Run on Save configuration option.

1.0.0 #

  • Initial version.
5
likes
150
points
146
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool to automatically sort and organize Dart imports in your project files, supporting custom rules, configs, and formatting options.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, args, dart_style, intl, logging, path, pub_semver, tint, yaml

More

Packages that depend on better_imports