- Install latest prettier and plugins
pnpm add -D prettier@latest prettier-plugin-svelte@latest prettier-plugin-tailwindcss@latest
- Change the default
.prettierrc
to prettier.config.js
and replace with the following.
/** @type {import("prettier").Config} */
export default {
useTabs: true,
singleQuote: true,
trailingComma: 'none',
printWidth: 80,
plugins: ['prettier-plugin-svelte', 'prettier-plugin-tailwindcss'],
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }]
};
- Rename the
postcss.config.cjs
to postcss.config.js
.
/** @type {import("postcss-load-config").Config} */
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};
.vscode/settings.json
- Remove the node_modules
- Re-install everything again
- Reload
vscode
.
Ctrl
+ Shift
+ p
- Developer: Reload Window