barrel_file_lints 1.0.5
barrel_file_lints: ^1.0.5 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 an executable
Install it
You can install the package from the command line:
dart pub global activate barrel_file_lintsUse it
The package has the following executables:
$ check_cycles
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add barrel_file_lintsWith Flutter:
$ flutter 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.5Alternatively, your editor might support dart pub get or flutter 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';