https://dart.dev/tools/linter-rules/simple_directive_paths
PREFER simple directive paths.
Using simple directive paths (avoiding redundant ./ or backtracking ../ segments) makes the code cleaner, more consistent, and easier to read. It also reduces the risk of confusion when resolving paths relative to the source file.
BAD:
import '../src/bar.dart';
GOOD:
https://dart.dev/tools/linter-rules/simple_directive_paths
PREFER simple directive paths.
Using simple directive paths (avoiding redundant ./ or backtracking ../ segments) makes the code cleaner, more consistent, and easier to read. It also reduces the risk of confusion when resolving paths relative to the source file.
BAD:
GOOD: