-
Notifications
You must be signed in to change notification settings - Fork 42
Enabling import/no-extraneous-dependencies inside rules/import.js introduces bug with path aliases #71
Comments
Thanks for reporting this. Unfortunately most of the projects we've rolled this out to internally don't use aliases, so we hadn't yet hit this issue. I've reproduced and also found the upstream issue: I'll create a PR to disable the offending change now! |
🎉 This issue has been resolved in version 5.0.2-canary.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Can you test the canary release (above) and let us know if that resolves your issue @JaViLuMa? There's nothing else in that release :) |
I definitely can! Give me few minutes! But since the issue is only introduced in Typescript, maybe we can disable that rule or remove the |
So I tested version |
Was having this very same issue and |
🎉 This issue has been resolved in version 5.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hello!
So from the title above there is a bug (maybe not) introduced when this line:
was enabled in the newer version of the style guide.
The bug is introduced when it comes to Typescript's path aliasing, which always gives me this error:
![image](https://private-user-images.githubusercontent.com/16469387/269744337-9b438e26-d6d8-4624-9ee3-ba249736778e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NjgxNDAsIm5iZiI6MTczOTg2Nzg0MCwicGF0aCI6Ii8xNjQ2OTM4Ny8yNjk3NDQzMzctOWI0MzhlMjYtZDZkOC00NjI0LTllZTMtYmEyNDk3MzY3NzhlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDA4MzcyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1NTc2YjU2NDFiODBiODFlODI5MTBlMWJmY2I0NzM3YTNkZTJjYzU0MmQ3Y2Y0YjFiNjBiNjFhZDc5Zjk4NzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4NzhztDUidknShlYA9FmfoE_H85Pmm1SJagJgie5KPg)
'level5' should be listed in the project's dependencies. Run 'npm i -S level5' to add
Where
level5
is literally the project I am currently working on:I have two projects that use this style guide and they both have the same identical setup when it comes to
tsconfig.json
and.eslintrc.json
.The project where the issue doesn't appear uses the
"@vercel/style-guide": "^4.0.2"
while this level5 one uses
"@vercel/style-guide": "^5.0.1"
.This is my
.eslintrrc.js
file:And my
tsconfig.json
file:The text was updated successfully, but these errors were encountered: