Group: errors

Maturity: stable

Dart SDK: >= 2.0.0 • (Linter v0.1.44)

Since info is static, may be stale
pedanticeffective dart

View all Lint Rules

Using the Linter

DO avoid relative imports for files in lib/.

When mixing relative and absolute imports it's possible to create confusion where the same member gets imported in two different ways. An easy way to avoid that is to ensure you have no relative imports that include lib/ in their paths.


import 'package:foo/bar.dart';

import 'baz.dart';



import 'package:foo/bar.dart';

import '../lib/baz.dart';