tidy_imports 1.0.0 copy "tidy_imports: ^1.0.0" to clipboard
tidy_imports: ^1.0.0 copied to clipboard

Automatically organize your Dart imports. Sorts and groups dart, flutter, package, and project imports alphabetically. Spiritual successor to import_sorter.

1.0.0 #

Spiritual successor to import_sorter.

What's new #

  • Full Dart 3 support (sdk: ">=3.0.0 <4.0.0")
  • Correct arg parsing using ArgResults properly instead of raw string matching
  • Fixed elapsed time display format (0.12s instead of 0.123 seconds)
  • Fixed duplicate path separator in file output
  • Removed debug prints that leaked to stdout in the original package
  • Added src/ directory to the default search paths
  • Improved detection of multi-line conditional imports
  • Better error messages when pubspec.yaml or pubspec.lock are missing
  • Expanded test suite with multiline-string, part of, and library edge cases

Inherited features #

  • Sort and group imports: Dart / Flutter / Package / Project
  • Alphabetical sorting within each group
  • Emoji comments (-e flag)
  • --no-comments, --exit-if-changed, --ignore-config flags
  • File filter via positional regex args
  • ignored_files config in pubspec.yaml
  • pre-commit hook support
1
likes
160
points
98
downloads

Documentation

API reference

Publisher

verified publisherdevfrs.com

Weekly Downloads

Automatically organize your Dart imports. Sorts and groups dart, flutter, package, and project imports alphabetically. Spiritual successor to import_sorter.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

args, tint, yaml

More

Packages that depend on tidy_imports