Avoid banned imports
Configure some imports that you want to ban.
With the configuration in the example below, here are some bad/good examples.
// No restricted imports in listed folders.
deny both support regular expressions.
- paths: ["some/folder/.*\.dart", "another/folder/.*\.dart"]
message: "Do not import Flutter Material Design library, we should not depend on it!"
- paths: ["core/.*\.dart"]
message: 'State management should be not used inside "core" folder.'