wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.23k stars 1.18k forks source link

Support prettier-plugin-tailwindcss #1180

Open Umbrien opened 1 year ago

Umbrien commented 1 year ago

Describe the bug Currently, to make prettier-plugin-tailwindcss work, you need to do some workarond with top-level npm init like @Zeko369 suggested in Discord:

  1. run npm init at the root of your project
  2. npm install --dev prettier prettier-plugin-tailwindcss
  3. make a top level .prettierrc.cjs
  4. add this
    module.exports = {
    // ... rest of your config
    plugins: [
    "prettier-plugin-tailwindcss",
    ],
    };

    Expected behavior Wasp deps should ideally only go into your .wasp file.

Martinsos commented 1 year ago

Thanks for this issue @Umbrien ! Hopefully this should be soon solved by the restructuring that we are working on (#734), together with some other stuff, so I would wait till we have that done, and if it still remains an issue then we tackle it separately.