Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/cli/config/prettier/prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('prettier').Config} */
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions & import('prettier-plugin-svelte').PluginConfig} */
const config = {
tabWidth: 2,
useTabs: false,
Expand All @@ -9,6 +9,7 @@ const config = {
arrowParens: "always",
proseWrap: "never",
printWidth: 80,
plugins: ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should include svelte (and arguably tailwindcss) by default, since not every projects are using these plugins. I've created an issue that talks about framework / library specific plugins support for prettier (similar to eslint) and is currently RFC.

Please feel free to leave your thoughts while waiting for @haydenbleasel's feedback, thanks!

};

export default config;