barrel_file_lints 1.0.5 copy "barrel_file_lints: ^1.0.5" to clipboard
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_lints

Use 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_lints

With Flutter:

 $ flutter pub add barrel_file_lints

This 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.5

Alternatively, 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';
0
likes
150
points
287
downloads

Publisher

verified publisherteklund.dev

Weekly Downloads

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.

Repository (GitHub)
View/report issues
Contributing

Topics

#linter #analyzer #flutter #architecture #clean-architecture

Documentation

API reference

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, args, path

More

Packages that depend on barrel_file_lints