cloudfour / eslint-config

MIT License
4 stars 1 forks source link

Import prefer-early-return rule from another plugin? #610

Open spaceninja opened 1 week ago

spaceninja commented 1 week ago

@Paul-Hebert wondered why we keep a copy of the prefer-early-return rule in this repo, rather than importing it from another package, perhaps this one:

For now, I wanted to rock the boat as little as possible, but it's a good idea to see if there's a maintained copy of this rule out there somewhere.

spaceninja commented 1 week ago

Better idea: Grab it from the original source, the Shopify ESLint plugin: https://github.com/Shopify/web-configs/tree/main/packages/eslint-plugin