fluttercommunity / fluttercommunity/import_sorter

Specify config in an independent file

Open
#67 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Dart
Stars
183
Forks
42
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
We are migrating our projects to a single monorepo and would love to have only one configuration set for all the stuff related to import sorting. Now, as ignoring files are only supported to be specified in the `pubspec.yaml` file we have to replicate that config per project instead of just once at the root of the monorepo.

**Describe the solution you'd like**
We would love to specify the config of `import_sorter` in a YAML file which could be passed using a relative path to the sort command.

**Describe alternatives you've considered**
I've tried to build a negative REGEX and pass it to the command (e.g. sort all imports here except those ending in `*.g.dart)`, but without success. If such a regex is possible, no config file would be needed as all the config options could be passed in one global command.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.