import_rules 0.0.1
import_rules: ^0.0.1 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_rulesThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
import_rules: ^0.0.1Alternatively, your editor might support dart 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';