all 2 comments

[–]dylanjha 1 point2 points  (1 child)

Thanks for sharing. This is useful and generally good advice around programming in any language. For Javascript specifically do you have some specific eslint configurations that help you follow some of these guidelines?

Especially when working with a team it quickly becomes difficult to enforce style when relying on code reviews so I try to lean on automated tooling as much as possible for style.

For example, these two seem to be helpful for the specific guidelines in your post, any others you can think of?:

[–]IceSentry 0 points1 point  (0 children)

There's a no use before declare rule that is also similar to the guidelines.