saadeghi / daisyui

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

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

Closed pkpg closed 1 month ago

pkpg commented 1 month 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 1 month 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.

saadeghi commented 1 month ago

This is vim issue. I can't do anything about it.
But as a workaround, you can disable the logs: https://daisyui.com/docs/config/#logs