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

A lint plugin for the Dart analyzer that enforces custom import rules in your projects. Control which files can import which other files using simple YAML configuration, enabling everything from simp [...]

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.3

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';
0
likes
140
points
--
downloads

Publisher

verified publishernorelease.dev

A lint plugin for the Dart analyzer that enforces custom import rules in your projects. Control which files can import which other files using simple YAML configuration, 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