-
Hi, I noticed that Prettier V3 supports ESM. However, it doesn't really work for me when I use it in VSCode. That's the log
Anyone knows what to do? And that's my config in import prettierConfig from "@fusion-dx/prettier-config";
/**
* @type {import('prettier').Options}
*/
export default {
...prettierConfig,
plugins: [
require("prettier-plugin-sql"),
require("prettier-plugin-tailwindcss"),
],
tailwindFunctions: ["clsx"],
} |
Beta Was this translation helpful? Give feedback.
Answered by
jansedlon
Jul 19, 2023
Replies: 1 comment
-
Fml.. I thought about deleting this, but if anyone comes around the same issue, just remove the import prettierConfig from "@fusion-dx/prettier-config";
/**
* @type {import('prettier').Options}
*/
export default {
...prettierConfig,
plugins: [
"prettier-plugin-sql",
"prettier-plugin-tailwindcss",
],
tailwindFunctions: ["clsx"],
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jansedlon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fml.. I thought about deleting this, but if anyone comes around the same issue, just remove the
require
fromplugins
and pass the plugin name in plain string. 🤦♂️ And restart VSCode