You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The packlets plugin checks local imports to ensure that we only import local code from other packlets — but there is a common edge case in Typescript repositories for which this fails: imports that use aliases defined in the tsconfig.json's compilerOptions.paths.
Summary
The packlets plugin checks local imports to ensure that we only import local code from other packlets — but there is a common edge case in Typescript repositories for which this fails: imports that use aliases defined in the
tsconfig.json
'scompilerOptions.paths
.Details
Imagine this directory structure:
Now take this import statment in
src/packlets/logger/log.ts
:However, if your
tsconfig.json
had the following configuration:An alias in your
src/packlets/logger/log.ts
would pass linting:Standard questions
Please answer these questions to help us investigate your issue more quickly:
@rushstack/eslint-plugin-packlets
version?node -v
)?The text was updated successfully, but these errors were encountered: