tidy_imports 1.0.0
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
ArgResultsproperly instead of raw string matching - Fixed elapsed time display format (
0.12sinstead of0.123seconds) - 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.yamlorpubspec.lockare missing - Expanded test suite with multiline-string,
part of, andlibraryedge cases
Inherited features #
- Sort and group imports: Dart / Flutter / Package / Project
- Alphabetical sorting within each group
- Emoji comments (
-eflag) --no-comments,--exit-if-changed,--ignore-configflags- File filter via positional regex args
ignored_filesconfig inpubspec.yamlpre-commithook support