Closed GreenDjango closed 2 years ago
Hi, I have a issue with double quotes import. It's only sort by alphabetical order on one blocs like this:
import "package:epicture/services/navigation/navigation_provider.dart"; import "package:epicture/theme.dart"; import "package:flutter/material.dart"; import "package:flutter/services.dart"; import "package:timeago/timeago.dart" as timeago;
And not like this:
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:timeago/timeago.dart' as timeago; import 'package:epicture/services/navigation/navigation_provider.dart'; import 'package:epicture/theme.dart';
My local config:
{ "dartimportsorter.sortOnSave": true, "dartimportsorter.leaveEmptyLinesBetweenGroups": true, "dartimportsorter.matchingRules": [ { "label": "Dart", "regex": "^dart:.*$", "order": 1, "regexFlags": [ "m" ] }, { "label": "Flutter", "regex": "^package:flutter/.*$", "order": 10, "regexFlags": [ "m" ] }, { "label": "Package imports that are NOT your app", "regex": "^package:(?!epicture|openapi_sdk).*$", "order": 100, "regexFlags": [ "m" ] }, { "label": "Everything else", "regex": ".*", "order": 101, "regexFlags": [ "m" ] } ] }
I forgot that two types of quote existed! I'm making a release to support double quotes shortly.
Thanks !
Hi, I have a issue with double quotes import. It's only sort by alphabetical order on one blocs like this:
And not like this:
My local config: