Add Prettier and config

This commit is contained in:
Bjørn Erik Pedersen
2025-02-13 16:36:41 +01:00
committed by GitHub
parent 43ab224280
commit 227b76ab7e
3 changed files with 27 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
# Ignore all SVG icons.
**/icons.html
# These are whitespace sensitive.
layouts/_default/_markup/render-code*
+21
View File
@@ -0,0 +1,21 @@
{
"plugins": ["prettier-plugin-go-template"],
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template",
"goTemplateBracketSpacing": true,
"bracketSameLine": true
}
},
{
"files": ["*.js", "*.ts"],
"options": {
"useTabs": true,
"printWidth": 120,
"singleQuote": true
}
}
]
}
+2
View File
@@ -11,6 +11,8 @@
"devDependencies": { "devDependencies": {
"@tailwindcss/cli": "^4.0.0", "@tailwindcss/cli": "^4.0.0",
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
"prettier": "^3.5.0",
"prettier-plugin-go-template": "^0.0.15",
"tailwindcss": "^4.0.0" "tailwindcss": "^4.0.0"
}, },
"dependencies": { "dependencies": {