Skip to content

Plugin adds dev output to the top of the file #324

Open
@pkpg

Description

@pkpg

What version of prettier-plugin-tailwindcss are you using?

v0.6.8

What version of Tailwind CSS are you using?

v3.2.1

What version of Node.js are you using?

v21.0.0

What package manager are you using?

npm and bun

What operating system are you using?

macOS

Reproduction URL

not possible

Describe your issue

I am using nvim with lazyvim and I have prettier installed in my project with this setup:

{
    "$schema": "https://json.schemastore.org/prettierrc",
    "semi": false,
    "tabWidth": 4,
    "singleQuote": true,
    "printWidth": 100,
    "bracketSameLine": true,
    "trailingComma": "es5",
    "bracketSpacing": false,
    "arrowParens": "always",
    "singleAttributePerLine": true,
    "plugins": ["prettier-plugin-tailwindcss"]
}

When I save a .vue file, the following output of npm run dev gets added to the top of my vue file:

🌼   daisyUI 4.12.13
├─ ✔︎ 30 themes added		https://daisyui.com/docs/themes
╰─ ❤︎ Support daisyUI project:	https://opencollective.com/daisyui

<script setup>
...

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