Add prettier configuration and dev dependencies

This commit is contained in:
Max Schmidt 2023-06-18 19:45:41 +02:00
parent 5c78039be0
commit bd48dcdef6
3 changed files with 20 additions and 0 deletions

11
astro/.prettierrc Normal file
View File

@ -0,0 +1,11 @@
{
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
}

View File

@ -20,5 +20,9 @@
"sharp": "^0.32.1",
"slate-serializers": "0.1.0",
"tailwindcss": "^3.0.24"
},
"devDependencies": {
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0"
}
}

View File

@ -3095,6 +3095,11 @@ prettier-plugin-astro@^0.9.1:
sass-formatter "^0.7.5"
synckit "^0.8.4"
prettier-plugin-tailwindcss@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.3.0.tgz#8299b307c7f6467f52732265579ed9375be6c818"
integrity sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==
prettier@^2.8.3, prettier@^2.8.8:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"