DEV Community

Discussion on: Prettier and the Beauty of Opinionated Code Formatters

 
g_abud profile image
Gabriel Abud

Yeah that sounds horrible. Maybe you can make the quality scan ignore your prettier code? Having conflicting formatters is about as bad as having no formatters.

Thread Thread
 
jrogers8835 profile image
jrogers8835

Yeah we need to talk to the quality team and see if rules can be set by team instead of company wide (not a small company) otherwise we'll have to change our prettier rules to match the scans 😒

Thread Thread
 
mxldevs profile image
MxL Devs

How about something crazy like having your own team's prettier-formatted code as the dev base, while pushing it to the quality team's spec is the "production" version lol

I worked on some codebase where the target platform only supported ES5 but others wanted to use ES6 so they were transpiling their code from ES6 to ES5 for "production" purposes.