This requires two things:
First, we need to checks that apps and libs can only import each other using absolute paths. So you can only use relative imports within a lib and an app. This should apply to all apps and libs.
Second, the developer should be able to provision the list of libs that should be lazy loaded. Those libs should only be imported using relative paths. Considering Point 1, other apps and libs won't be able to import these libs. This configuration can be specified in .angular.cli.jsonortslint.json`. Whatever is easier.
This requires two things:
First, we need to checks that apps and libs can only import each other using absolute paths. So you can only use relative imports within a lib and an app. This should apply to all apps and libs.
Second, the developer should be able to provision the list of libs that should be lazy loaded. Those libs should only be imported using relative paths. Considering Point 1, other apps and libs won't be able to import these libs. This configuration can be specified in .angular.cli.json
ortslint.json`. Whatever is easier.