A Reactjs coding style guide
This project is maintained by LinuxDevil
Comments are an apology, not a requirement. Good code mostly documents itself.
Bad:
// Check if subscription is active.
if (subscription.endDate > Date.now) {
}
Good:
const isSubscriptionActive = subscription.endDate > Date.now;
if (isSubscriptionActive) {
/* ... */
}