eslint-config-hardcore icon indicating copy to clipboard operation
eslint-config-hardcore copied to clipboard

Consider enabling `@shopify/prefer-early-return`

Open EvgenyOrekhov opened this issue 1 year ago • 2 comments

@shopify/prefer-early-return

EvgenyOrekhov avatar Jun 14 '23 20:06 EvgenyOrekhov

It should already do the thing by 🐊@putout/plugin-apply-early-return.

coderaiser avatar Jul 28 '23 16:07 coderaiser

Shopify plugin has a maximumStatements option and because of that, it seems superior. Would set it to at least 3 or 4 to not be too annoying.

silverwind avatar Sep 17 '23 10:09 silverwind