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
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.
You’re not really supposed to use the eslint prettier plugin also, your format script should be separate from your lint script
what do you mean run the lint manually on the command line?
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
ah i see...
thank you very much for clearing that up
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
i read through the docs but didn't think to check the npm scripts
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