eslint-plugin icon indicating copy to clipboard operation
eslint-plugin copied to clipboard

Rule: `prefer-condition-over-split`

Open igorkamyshev opened this issue 4 years ago • 4 comments

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

igorkamyshev avatar Aug 28 '21 10:08 igorkamyshev

what about greedy?

focusbytheway avatar Aug 02 '22 06:08 focusbytheway

what about greedy?

Sorry, could you explain your concern, please?

igorkamyshev avatar Aug 02 '22 08:08 igorkamyshev

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

focusbytheway avatar Aug 02 '22 08:08 focusbytheway

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

sergeysova avatar Aug 02 '22 09:08 sergeysova