Skip to content

Commit

Permalink
fix(schematics): fixed the absolute import check
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Mar 19, 2018
1 parent fcec9dc commit de138bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ class EnforceModuleBoundariesWalker extends Lint.RuleWalker {
private isAbsoluteImportIntoAnotherProject(imp: string) {
return (
imp.startsWith('libs/') ||
(imp.startsWith('/libs/') && imp.startsWith('apps/')) ||
imp.startsWith('/libs/') ||
imp.startsWith('apps/') ||
imp.startsWith('/apps/')
);
}
Expand Down

0 comments on commit de138bb

Please sign in to comment.