Skip to content

I can place a tailwind.config.js inside tailwindStylesheet #361

@mrleblanc101

Description

@mrleblanc101

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions