You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was never too big of a fan of how this simple-unless rules disallows helpers with unless entirely. In many of my codebases at work, we have disabled the helpers check with 'simple-unless': { maxHelpers: -1 }. Might be worth re-evaluating the default for this in a major release (v5 #2319). Even allowing just 1 helper by default would help a lot.
This is especially relevant now that we added an autofixer for this in #2639. Autofixing unless to if not just because a helper is present doesn't feel like much of an improvement and is kind of annoying.
I was never too big of a fan of how this
simple-unless
rules disallows helpers withunless
entirely. In many of my codebases at work, we have disabled the helpers check with'simple-unless': { maxHelpers: -1 }
. Might be worth re-evaluating the default for this in a major release (v5 #2319). Even allowing just1
helper by default would help a lot.This is especially relevant now that we added an autofixer for this in #2639. Autofixing
unless
toif not
just because a helper is present doesn't feel like much of an improvement and is kind of annoying.Originally posted by @bmish in #2639 (comment)
The text was updated successfully, but these errors were encountered: