-
-
Notifications
You must be signed in to change notification settings - Fork 75
Update: add proper scope analysis (fixes #535) #540
Conversation
I'm a newbie about jest. Please advise me on how to write tests with jest. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some small comments, but otherwise this is looking great!
I'm wondering to distinguish |
I'm wondering on #488.
|
I have done except about #488. |
I hope to separate PR for #488. Please review! |
I'll take a look at this tonight, thanks a lot @mysticatea! |
Amazing work, @mysticatea! I just had the one question about the tests left above. I think your approach to the serialization is reasonable, although you can also create a custom matcher for jest as an alternative: https://jestjs.io/docs/en/expect#custom-matchers-api |
I don't know if you noticed the pattern I established for running integration tests within docker containers in this project. With so many potentially closed issues here, it might be nice to add them in as one or more integration tests? Let me know what you think and if you need any help with that |
🤔 I need time a bit to understand how those integration tests work since I'm not familiar with docker (and I'm on Windows 7). |
Ok no problem regarding the integration tests, I can always add them in a follow up |
# Conflicts: # package.json
Thank you. I removed |
Why is it still blocked? It would be great to have this PR merged. Right now we have a add a ton of exceptions in config because of all the false-positives |
Hi @ lvivski, there are a couple of people who still need to review this, including me. This is open source and we all work as volunteers. We sometimes have other obligations in our lives. I'm sorry that this sometimes results in inconvenience for users who are eagerly waiting for a feature to get merged. |
@platinumazure sorry, I didn't mean to blame anyone but rather wanted to understand if there's anything that I can help with. Obviously everyone has life outside of github and their own obligations. I just wasn't sure what was the actual reason of blocking the merge. Unfortunately I don't have enough experience with |
@lvivski Thank you for your understanding. I apologize for misinterpreting your previous comment. I've just taken a look and I only need to double-check one thing before I can leave my review-- hopefully I'll be able to approve after that check and then we can get this in soon! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Thank you so much for taking a look into it! |
@platinumazure Thank you very much! |
This PR adds proper scope analysis by returning
scopeManager
object fromparseForESLint
function.The
scopeManager
doesn't contain any types. I think that we can provideparserServices
to get types, but I don't contain it in this PR.This fixes #416, #435, #437, #443, #459, #466, #471, #476, #487, #535, #536, and #545.
no-use-before-define
#435