What version of prettier-plugin-tailwindcss are you using?
0.6.11
What version of Tailwind CSS are you using?
4.1.5
What version of Node.js are you using?
v20.17.0
What package manager are you using?
npm
What operating system are you using?
macOS
Reproduction URL
{
"printWidth": 120,
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"quoteProps": "consistent",
"bracketSameLine": false,
"plugins": ["prettier-plugin-tailwindcss"],
"tailwindStylesheet": "./tailwind.config.ts"
}
Describe your issue
Just noticed that my tailwindStylesheet pointed to a tailwind.config.js file instead of the stylesheet.
There is no error, so I thought everything worked fine, but it didn't.
Maybe there should be some sort of validation to make sure tailwindStylesheet is a CSS file, and that tailwindConfig is a JavaScript file.
What version of
prettier-plugin-tailwindcssare you using?0.6.11
What version of Tailwind CSS are you using?
4.1.5
What version of Node.js are you using?
v20.17.0
What package manager are you using?
npm
What operating system are you using?
macOS
Reproduction URL
{ "printWidth": 120, "tabWidth": 4, "semi": true, "singleQuote": true, "trailingComma": "all", "quoteProps": "consistent", "bracketSameLine": false, "plugins": ["prettier-plugin-tailwindcss"], "tailwindStylesheet": "./tailwind.config.ts" }Describe your issue
Just noticed that my
tailwindStylesheetpointed to atailwind.config.jsfile instead of the stylesheet.There is no error, so I thought everything worked fine, but it didn't.
Maybe there should be some sort of validation to make sure
tailwindStylesheetis a CSS file, and thattailwindConfigis a JavaScript file.