devilish666@lemmy.world to Programmer Humor@lemmy.ml · 6 months agocodeStylelemmy.worldimagemessage-square18fedilinkarrow-up1108arrow-down19
arrow-up199arrow-down1imagecodeStylelemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 6 months agomessage-square18fedilink
minus-squareAustralis13@fedia.iolinkfedilinkarrow-up7·edit-26 months agoI felt that. I have a colleague whose coding style is different to mine and whenever they work on code that I originally wrote, I have to resist the temptation to modify things to camelCase.
minus-squaremesamune@lemmy.worldlinkfedilinkEnglisharrow-up23arrow-down1·6 months agoLinters make these kind of things easier. Then you get mad at the tool rather than your coworker.
minus-squareflashgnash@lemm.eelinkfedilinkarrow-up5·6 months agoDoes Prettier count as a linter? I always thought linters were more to find bad practice and possible errors than control the code style
minus-squareAustralis13@fedia.iolinkfedilinkarrow-up4·6 months agoSome linters can do both. Getting one set up as an automated job whenever code is pushed to the repo is on my TODO list…
minus-squareflashgnash@lemm.eelinkfedilinkarrow-up1·6 months agoThat does sound nice to me too. I’ve found prettier with format on save works pretty well but that means you have to set it up in every editor
I felt that. I have a colleague whose coding style is different to mine and whenever they work on code that I originally wrote, I have to resist the temptation to modify things to camelCase.
Linters make these kind of things easier. Then you get mad at the tool rather than your coworker.
Does Prettier count as a linter?
I always thought linters were more to find bad practice and possible errors than control the code style
Some linters can do both. Getting one set up as an automated job whenever code is pushed to the repo is on my TODO list…
That does sound nice to me too. I’ve found prettier with format on save works pretty well but that means you have to set it up in every editor