Skip to content

Commit 8071718

Browse files
committed
lint: Enable prefer_relative_imports
See docs: https://dart.dev/guides/language/effective-dart/usage#prefer-relative-import-paths And the rationale for why some consistent convention is needed is just above that: https://dart.dev/guides/language/effective-dart/usage#dont-allow-an-import-path-to-reach-into-or-out-of-lib
1 parent 57294ea commit 8071718

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ linter:
2424
rules:
2525
# avoid_print: false # Uncomment to disable the `avoid_print` rule
2626
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
prefer_relative_imports: true
2728

2829
# Additional information about this file can be found at
2930
# https://dart.dev/guides/language/analysis-options

0 commit comments

Comments
 (0)