saadeghi / daisyui

🌼 🌼 🌼 🌼 🌼  The most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
33.69k stars 1.28k forks source link

bug: prettier adds dev output to the top of the file #3247

Open pkpg opened 3 hours ago

pkpg commented 3 hours ago

What version of daisyUI are you using?

v4.12.13

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

not available

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>
...
github-actions[bot] commented 3 hours ago

Thank you @pkpg for reporting issues. It helps daisyUI a lot πŸ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.