Why do we not use eslint-plugin-prettier in t3 app

Not including this seems like there would be overlap between eslint and prettier. Am I missing something?
8 Replies
MagerX
MagerX16mo ago
There is some overlap and plenty of people make the choice to use both but t3 has rule of unenforcement as far as I can tell. Outside of the basics, if you want something you should at it, the point of create-t3-app is just to jump start getting started.
Rhys
Rhys16mo ago
You’re not really supposed to use the eslint prettier plugin also, your format script should be separate from your lint script
meeepsss
meeepsss16mo ago
what do you mean run the lint manually on the command line?
Rhys
Rhys16mo ago
In your package.json you have a script that says like “lint” or something, that’s what you’d run to validate your code is passing your lint rules In the same vein, you have a format and a format:check script to format your code and validate it matches your formatting
meeepsss
meeepsss16mo ago
ah i see... thank you very much for clearing that up
Rhys
Rhys16mo ago
https://github.com/AnswerOverflow/AnswerOverflow/tree/main/packages/utils This is from a monorepo but you can see how it’s setup
GitHub
AnswerOverflow/packages/utils at main · AnswerOverflow/AnswerOverflow
Indexing Discord Help Channel Questions into Google - AnswerOverflow/AnswerOverflow
meeepsss
meeepsss16mo ago
i read through the docs but didn't think to check the npm scripts
barry
barry16mo ago
It’s a split opinion on whether people want it or not I personally don’t want it And the people that do, it’s so trivial and easy to add So to default it is against t3 standards if you ask me
Want results from more Discord servers?
Add your server