Lint to warn about importing a package you do not directly depend on #58254
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-lint-request
type-enhancement
A request for a change that isn't a bug
Package a.yaml:
package b.yaml:
pacakge a.dart:
It'd be nice if a lint could catch that package
a
is transitively depending onc
and importing it - and insteaed should be directly depending on it.The text was updated successfully, but these errors were encountered: