Commit graph

5 commits

Author SHA1 Message Date
Tobias
f5bcc35bc9 Prettier: Fix new line setting
https://github.com/sveltejs/prettier-plugin-svelte#svelte-bracket-new-line states
> Deprecated since 2.5.0. Use Prettier 2.4.0 and bracketSameLine instead.

The new setting bracketSameLine=false is in line with how the pages are formatted mostly ATM, so it causes the least amount of change on save.
2023-06-15 06:04:39 +02:00
Tobias
474f71db3f Prettier: Introduce prettier-plugin-tailwindcss
Which is the official plugin that helps with auto sorting class names https://www.npmjs.com/package/prettier-plugin-tailwindcss

The config follows the recommendation from https://github.com/sveltejs/prettier-plugin-svelte#usage-with-tailwind-prettier-plugin
2023-06-14 15:55:57 +02:00
Tobias
1cf0f24d8e Prettier: Move config from cli to prettierrc file
This way they are applied globally and "on save"
2023-06-14 15:37:53 +02:00
wjtje
203d1b6b34 🚧 First svelte component 2023-02-08 01:18:56 +01:00
Brice Maron
d3f453a4fb feat: add prettier config 2022-09-08 20:57:11 +02:00