[eslint/imports/no-boundary-crossing] don't allow package tests to import outside of packages (#142166)

This commit is contained in:
Spencer 2022-09-29 11:48:49 -05:00 committed by GitHub
parent 3ca18d9fe6
commit b41a07f85a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 96 additions and 14 deletions

View file

@ -13,4 +13,6 @@ export interface PkgInfo {
rel: string;
/** Absolute path to the package directory */
pkgDir: string;
/** Is the package a bazel package? If false, then the package is a "synthetic" plugin package */
isBazelPackage: boolean;
}

View file

@ -93,6 +93,7 @@ export class RepoPath {
pkgDir,
pkgId,
rel,
isBazelPackage: this.resolver.isBazelPackage(pkgId),
};
}
}