reactioncommerce / reaction-eslint-config

Reaction Eslint Configuration
MIT License
5 stars 6 forks source link

Revisit rules prior to 2.0.0 release #13

Closed kieckhafer closed 5 years ago

kieckhafer commented 5 years ago

After auditing all existing eslint warnings, we will be releasing v.2.0.0 of this config. We should spend some time revisiting the existing rules and adding any new rules we see fit prior to this release.

Please use this ticket for any discussion about what to remove / add / update.

rosshadden commented 5 years ago

I started a list a couple weeks ago as I added our linting rules to a codebase that did not previously have them. In my prime I used to get fired up about linting rules but nowdays I only have problems with the weird pointy ones that tell me I can't do things that every other kid on the block does. Mom and Dad, please.

I care even less about these but don't really understand why they are enforced:

kieckhafer commented 5 years ago

@zenweasel @spencern @aldeed

Are there any new rules that you would like enforced, or older rules that should be removed, in this 2.0.0 release: https://github.com/reactioncommerce/reaction-eslint-config/pull/17

What about the rules @rosshadden mentioned above?

@aldeed you mentioned a few here, still contemplating those? https://github.com/reactioncommerce/reaction-eslint-config/issues/5

aldeed commented 5 years ago

I'd also update to latest of all the plugin packages if you haven't already @kieckhafer

brent-hoover commented 5 years ago

Well, just a note that things like prefer-destructuring aren't for people like @rosshadden, they are for less experienced people who just don't do it, and in general when you can, you should. You can always disable it for a particular line if you have a good reason to do it and a comment why you did is probably good learning for everybody and without that we don't know if you intended to or just forgot.

That and catch-and-return are good guardrails for people imho. Experts can break the rules when needed.

kieckhafer commented 5 years ago

So it seems like we should keep all the rules that were mentioned to be seen more as helpful rules for beginners as opposed to annoying rules for more experienced developers.

rc-publisher commented 5 years ago

:tada: This issue has been resolved in version 1.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: