Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

fix: Support of new select API for all rules #68

Merged
merged 4 commits into from May 4, 2020

Conversation

Aldredcz
Copy link
Contributor

@Aldredcz Aldredcz commented May 4, 2020

After merging the rfc: Objects as arguments in selectors, I updated the selectors-format rule to match the new select API.

Unfortunately, I missed another two rules, which work with select, resulting in insufficient linting.
Reported by @tomsvob: https://github.com/productboard/pb-frontend/pull/7914#discussion_r419274033

In this PR I am implementing the support of the new select API for these 2 remaining lint rules.

Also, I introduced utils/connectUtils and utils/selectUtils to unify some common logic of detecting connect/select CallExpressions.


And also there are quite a lot of syntax changes, as I ran prettier on the existing files, which were not prettified before.

💡Idea: Let's introduce official prettier support for this repo?
Edit: I see we already track this (#51)

@Aldredcz Aldredcz added the bug Something isn't working label May 4, 2020
@Aldredcz Aldredcz requested a review from jukben May 4, 2020 11:45
@Aldredcz Aldredcz self-assigned this May 4, 2020
@jukben
Copy link
Contributor

jukben commented May 4, 2020

Awesome, thanks for it and also for extending test suit case. 💪

@jukben jukben merged commit f8055da into master May 4, 2020
@Aldredcz Aldredcz deleted the fix/new-select-api-support-in-all-rules branch May 4, 2020 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

None yet

2 participants