import_rules 0.0.4 copy "import_rules: ^0.0.4" to clipboard
import_rules: ^0.0.4 copied to clipboard

A lint plugin for the Dart analyzer that enforces custom import rules in your projects. enabling everything from simple allow/disallow lists to complex module dependency constraints for architectural [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add import_rules

With Flutter:

 $ flutter pub add import_rules

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

dependencies:
  import_rules: ^0.0.4

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:import_rules/import_rules.dart';
3
likes
130
points
653
downloads

Publisher

verified publishernorelease.dev

Weekly Downloads

A lint plugin for the Dart analyzer that enforces custom import rules in your projects. enabling everything from simple allow/disallow lists to complex module dependency constraints for architectural patterns such as layered architecture, feature isolation, and encapsulation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, glob, logging, meta, path, yaml

More

Packages that depend on import_rules