-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: support yarn pnp #28
feat: support yarn pnp #28
Conversation
@privatenumber I don't know whether my latest commit |
Friendly ping @privatenumber |
Let's revert any unnecessary changes that has nothing to do with yarn/pnp. |
They're all required changes. |
It's
|
We can't move forward with this if it's unpredictably changing the way ESLint behaves. |
So we test with |
Ideally, using yarn should be isolated to running yarn/pnp tests. Best case, yarn's resolver is imported rather than injected by running via |
I don't know how to implement it easily. 😅 Maybe you can try this way after merging? I'll change to use |
There should also be a test-case that fails without these changes. |
Not sure to understand, can you explain in details? We have All test cases are passing now, how do you think? |
For all the tests that are running with pnp, a fixture with To test the new feature, there should be a test case that fails prior to these changes, which passes after these changes. |
I don't know how to test to revert these changes first? I believe you can add this test case later? pnpm has PnP mode the same time, it also resolves |
I added a failing test here: #32 Can you pull it in? |
Let me check. |
Thanks for the PR @JounQin. It's looking really good. I was glad to see the feature implementation is working with pnp without a I haven't actually started reviewing the implementation yet but will take a look tomorrow. |
close #26
close import-js/eslint-import-resolver-typescript#130
continue #27
I'll try to add a test case later, and it has been confirmed to be working as expected at https://github.com/import-js/eslint-import-resolver-typescript/pull/133 by `yarn patch`.