Skip to content

Commit

Permalink
Use alternative blade formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki committed Mar 16, 2024
1 parent c22d555 commit 32bc58a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
27 changes: 14 additions & 13 deletions node_sandbox/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"plugins": ["@shufo/prettier-plugin-blade"],
"overrides": [
{
"files": ["*.blade.php"],
"options": {
"extraLiners": "",
"parser": "blade",
"tabWidth": 4,
"sortTailwindcssClasses": true,
"sortHtmlAttributes": "none"
}
}
]
"plugins": [
"prettier-plugin-blade",
"prettier-plugin-tailwindcss"
],
"overrides": [
{
"files": [
"*.blade.php"
],
"options": {
"parser": "blade"
}
}
]
}
3 changes: 2 additions & 1 deletion node_sandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"devDependencies": {
"@shufo/prettier-plugin-blade": "^1.14.1",
"prettier-plugin-blade": "^2.1.6",
"prettier-plugin-tailwindcss": "^0.5.12",
"prettier": "^3.2.5"
}
}

0 comments on commit 32bc58a

Please sign in to comment.