effector / eslint-plugin

Enforcing best practices for Effector
https://eslint.effector.dev
MIT License
89 stars 16 forks source link

Rule: `prefer-condition-over-split` #5

Open igorkamyshev opened 3 years ago

igorkamyshev commented 3 years ago

patronum/condition is more clear way to write simple split with two cases. This rule will replace split-call with condition-call.

focusbytheway commented 2 years ago

what about greedy?

igorkamyshev commented 2 years ago

what about greedy?

Sorry, could you explain your concern, please?

focusbytheway commented 2 years ago

what about greedy?

Sorry, could you explain your concern, please?

So if I use condition over split but need greedy in my case? As I know there is no opportunity to use greedy with condition

sergeysova commented 2 years ago

@45m0d3u5 You can open an issue in patronum to add the greedy option