Skip to content

Commit 2bd9ddb

Browse files
committed
[#33] POC Twig/Tailwind Prettier
TODO: Still needc to sort out how to get TW to work with .twig extension
1 parent 98b08dd commit 2bd9ddb

File tree

3 files changed

+215
-1
lines changed

3 files changed

+215
-1
lines changed

.prettierrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,14 @@
22
"semi": false,
33
"singleQuote": true,
44
"tabWidth": 2,
5-
"trailingComma": "all"
5+
"trailingComma": "all",
6+
"plugins": ["@zackad/prettier-plugin-twig", "prettier-plugin-tailwindcss"],
7+
"twigPrintWidth": 80,
8+
"twigAlwaysBreakObjects": true,
9+
"twigMultiTags": [
10+
"nav,endnav",
11+
"switch,case,default,endswitch",
12+
"ifchildren,endifchildren",
13+
"cache,endcache"
14+
]
615
}

package-lock.json

Lines changed: 203 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@eslint/js": "^9.3.0",
16+
"@zackad/prettier-plugin-twig": "^0.9.1",
1617
"autoprefixer": "^10.4.19",
1718
"cssnano": "^7.0.1",
1819
"eslint-config-prettier": "^9.1.0",
@@ -22,6 +23,7 @@
2223
"postcss": "^8.4.38",
2324
"postcss-pxtorem": "^6.1.0",
2425
"prettier": "3.2.5",
26+
"prettier-plugin-tailwindcss": "^0.6.8",
2527
"tailwindcss": "^3.4.3",
2628
"vite": "^5.2.0",
2729
"vite-plugin-static-copy": "^1.0.6"

0 commit comments

Comments
 (0)