2 ms·
This pretty much nails it all. Good shared coding standards are like not throwing trash on the beach when you leave. It about more than "you". I have also seen
by 867567838694 7y ago
This pretty much nails it all. Good shared coding standards are like not throwing trash on the beach when you leave. It about more than "you". I have also seen coding standards taken too far as well which can almost have worse side effects so be mindful.
Personally for my Javascript projects I've been using prettier with their combined linting rules. I don't like every choice it makes, but it keeps the code clean and consistent.
I also like to make sure the team is down on all the rules you can't auto-format and I like to keep those light. Use es6, no lodash, use native promises, don't use arrow functions to define class methods... that kind of stuff, all very personal and project specific.