Re:Ask HN: Does your organization enforce a code style/forma...
by speedgoose on Wednesday January 27, 2021 @01:58PM
(#25932283)
Yes, I'm the one pushing for a very annoying linter. Some coworkers don't like it but I think the majority likes it.
We use eslint with a set of airbnb and unicorn rules. We went from the recommended rules and changed a few settings. Most of the rules will reformat or fix the code automatically so it's not a huge problem during development. If it's not automatically fixed, you will still have a link to the documentation explaining why the rule exists. You also cannot merge to the main branch if the linter is not happy.
And I recently started to write custom eslint rules too, it's not very difficult and it's fun.
We use eslint with a set of airbnb and unicorn rules. We went from the recommended rules and changed a few settings. Most of the rules will reformat or fix the code automatically so it's not a huge problem during development. If it's not automatically fixed, you will still have a link to the documentation explaining why the rule exists. You also cannot merge to the main branch if the linter is not happy.
And I recently started to write custom eslint rules too, it's not very difficult and it's fun.