forked from MapComplete/MapComplete
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
This commit is contained in:
parent
1cf0f24d8e
commit
474f71db3f
3 changed files with 84 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"semi": false,
|
||||
"printWidth": 100,
|
||||
"plugins": ["prettier-plugin-svelte"],
|
||||
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
|
||||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
|
||||
"svelteBracketNewLine": false,
|
||||
"htmlWhitespaceSensitivity": "ignore"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue