Closed berkaycirak closed 5 months ago
Hey! You can use Prettier's configuration overrides feature for this:
{
// …
"overrides": [
{
"files": "App/project1/**",
"options": {
"tailwindConfig": "./App/project1/tailwind.config.ts"
}
},
{
"files": "App/project2/**",
"options": {
"tailwindConfig": "./App/project2/tailwind.config.ts"
}
},
{
"files": "App/project3/**",
"options": {
"tailwindConfig": "./App/project3/tailwind.config.ts"
}
}
]
}
This way you can have different settings for different sets of files.
Hi, I have a monorepo in which there are more than one project using tailwindcss. In my root file, I set my
.prettierrc
file as likeHowever, there is no configuration such as
apps/*/tailwind.config.js
. In my app, folder structure like below and I need help to apply thatprettier-tailwind-plugin
to all my projects from my root