DEV Community

[Comment from a deleted post]
Collapse
 
ky1e_s profile image
Kyle Stephens

Try to automate away the pain a bit.

Setup a linter like ESLint and define the style rules. Then ensure everyone runs the linter in their editor to highlight style violations.

If you want to take things a step further you could implement a pre-commit hook on git that prevents people from committing where they exceed a certain number of style violations.

Removes the repetitive pointing out, interpersonal tension and serves to automatically guide others towards a better style.

Collapse
 
realshadow profile image
Lukáš Homza

Will do, I looked up some tools yesterday.

For me this is a very weird. Because I made some open source contributions in my time and I have always adapted my style to theirs, even if I didn't like the style