Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔄 False positive: unresolved imports for junitProperties.js and junitTestCaseProperties.js #841

Closed
4 tasks done
schnuri-schnuri opened this issue Nov 20, 2024 · 7 comments
Labels
regression Something is no longer working

Comments

@schnuri-schnuri
Copy link

Prerequisites

Reproduction url

https://stackblitz.com/edit/github-hnquqz

Reproduction access

  • I've made sure the reproduction is publicly accessible

Good version

5.36.7

Bad version

5.37.0

Description of the regression

Knip complains about "unresolved imports" errors regarding junitProperties.js and junitTestCaseProperties.js.
Until know, jest-junit worked fine without these files.

See also my comment to the PR

PS: Thank you for this awesome tool. I convinced my colleagues to ditch ESlint for this and it's a breeze to use.

@schnuri-schnuri schnuri-schnuri added the regression Something is no longer working label Nov 20, 2024
@webpro webpro closed this as completed in 4657618 Nov 21, 2024
@webpro
Copy link
Collaborator

webpro commented Nov 21, 2024

@schnuri-schnuri @tryggvigy Should be fixed now, could you please confirm by trying it in your project(s)? Would be great before I release-it. With a package manager like so:

npm i -D https://pkg.pr.new/knip@4657618

@webpro
Copy link
Collaborator

webpro commented Nov 21, 2024

PS: Thank you for this awesome tool. I convinced my colleagues to ditch ESlint for this and it's a breeze to use.

Well thanks, but please understand Knip does not have any overlap in functionality with ESLint:

  • ESLint is a file linter, and finds unused variables (that are not exported!)
  • Knip is a project linter, and finds unused exports

@schnuri-schnuri
Copy link
Author

Yes, sorry, I got it mixed up! We are also migrating away from ESLint at the same time, but to a different tool.

Well, we found a lot of issues in the code base thanks to Knip, which is very nice! A it replaced depcheck, at least.

Thanks for the quick fix. I will have a look at it tomorrow morning (🇪🇺).

@eMerzh
Copy link

eMerzh commented Nov 21, 2024

It looks good from here, have the issue with latest version, but not with the one you published 👍

@schnuri-schnuri
Copy link
Author

Yes, works for me as well. Thank you :)

@webpro
Copy link
Collaborator

webpro commented Nov 22, 2024

🚀 This issue has been resolved in v5.37.2. See Release 5.37.2 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

@webpro
Copy link
Collaborator

webpro commented Nov 22, 2024

Let's go then. Thanks y'all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Something is no longer working
Projects
None yet
Development

No branches or pull requests

3 participants