barrel_file_lints 1.0.1
barrel_file_lints: ^1.0.1 copied to clipboard
A Dart 3.10+ analyzer plugin that enforces barrel file import rules for feature-based Flutter architecture. Supports both feature_xxx/ and features/xxx/ naming conventions.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add barrel_file_lintsThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
barrel_file_lints: ^1.0.1Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:barrel_file_lints/barrel_file_lints.dart';