avoid-barrel-files
Warns when a file is a barrel file.
Barrel files are files that only reexport declarations from other files (ex. all events or models an app has). They negatively affect analyzer's performance, so it's recommended to avoid them.
Example
❌ Bad:
index.dart
// LINT: Barrel files can significantly degrade the analyzer performance when the file is changed in large projects. Try migrating from this approach.
export 'package:test/fake.dart';
export 'correct_example.dart';
✅ Good:
other.dart
export 'example.dart';
// Correct, has declarations
class SomeClass {}