import_sorter icon indicating copy to clipboard operation
import_sorter copied to clipboard

🎯 Automatically organize your dart imports. Maintainer: @gleich

Results 31 import_sorter issues
Sort by recently updated
recently updated
newest added

You can add extra key in pubspec: ``` import_sorter: header: 'Extra header above' # Optional, adds extra line above all imports. ``` Result: ``` // Extra header above! // 🎯...

I suggest to **remove unused imports** during the sorting as well.

Closes #59 - Add conversion of project imports to relative imports for lib files. - Add test for convertToRelativeImports Question: The example app has the following import but no corresponding...

Packages which are not pulled from a remote, but read from a local path can be grouped individually with this option.

At the moment, the pre-commit hook definition expects `dart`/`flutter` executables to be accessible in the search path. However, it is a common practice to install several channels on the same...

bug

**Describe the bug** I use // ignore: implementation_imports in my project above some imports because I use some packages and their implementation. **To Reproduce** What command or actions did you...

bug

**Describe the bug** In a file that contains relative import paths, and an absolute path to a named import, then the Dart linting rule `directives_ordering` fails. **To Reproduce** 1. In...

bug

**Describe the bug** When an import statement being splitted in multiple lines (eg. because exceeding the default 80 characters with `show` or `hide` on any long import) the tool moves...

bug

**Describe the solution you'd like** It would be great if we could have the possibility to sort the export from our barrel files **Additional context** Let's supose we have a...