lint_barrel_self_import 0.1.1 copy "lint_barrel_self_import: ^0.1.1" to clipboard
lint_barrel_self_import: ^0.1.1 copied to clipboard

A custom lint rule to avoid importing a package's own barrel file from within that package.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add lint_barrel_self_import

With Flutter:

 $ flutter pub add lint_barrel_self_import

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  lint_barrel_self_import: ^0.1.1

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:lint_barrel_self_import/lint_barrel_self_import.dart';
0
likes
120
points
16
downloads

Publisher

verified publishersotaatos.dev

Weekly Downloads

A custom lint rule to avoid importing a package's own barrel file from within that package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, custom_lint_builder, path

More

Packages that depend on lint_barrel_self_import