prettierd
prettierd copied to clipboard
prettierd not reading the config file with tailwindcss plugin
I have the following prettier.config.js
file, and I'm using ESM, adding the prettier-plugin-tailwindcss
in the plugins results in not reading the config file at all. I'm also working on a monorepo with yarn workspaces.
/** @type {import("prettier").Config} */
module.exports = {
plugins: ["prettier-plugin-tailwindcss"],
semi: false,
};
I had the same issue where including prettier-plugin-tailwindcss
was causing issues with prettierd (although my config was using .prettierrc
). I had an old instance of prettierd running that was causing the issue. Running prettierd stop
fixed this issue for me. Hope it helps your case.
I can confirm the issue with "prettierd" ignoring local config overrides. The method suggested by @mononoken helped resolve this obscure issue.
This is still happening by the way. Took me a long time to figure out it was prettierd that seems to be caching the last used config or something. @mononoken's workaround helped me indeed. Make sure to run prettierd stop
every time you make a change to your prettier config file.