Skip to content

Commit

Permalink
[#33] POC Twig/Tailwind Prettier
Browse files Browse the repository at this point in the history
TODO: Still needc to sort out how to get TW to work with .twig extension
  • Loading branch information
joshuapease committed Feb 25, 2025
1 parent 98b08dd commit 2bd9ddb
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
"trailingComma": "all",
"plugins": ["@zackad/prettier-plugin-twig", "prettier-plugin-tailwindcss"],
"twigPrintWidth": 80,
"twigAlwaysBreakObjects": true,
"twigMultiTags": [
"nav,endnav",
"switch,case,default,endswitch",
"ifchildren,endifchildren",
"cache,endcache"
]
}
203 changes: 203 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"devDependencies": {
"@eslint/js": "^9.3.0",
"@zackad/prettier-plugin-twig": "^0.9.1",
"autoprefixer": "^10.4.19",
"cssnano": "^7.0.1",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -22,6 +23,7 @@
"postcss": "^8.4.38",
"postcss-pxtorem": "^6.1.0",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.3",
"vite": "^5.2.0",
"vite-plugin-static-copy": "^1.0.6"
Expand Down

0 comments on commit 2bd9ddb

Please sign in to comment.