Closed robsontenorio closed 1 year ago
👋 Hey, there!
This can be controlled using the singleAttributePerLine
prettier option: https://prettier.io/docs/en/options.html#single-attribute-per-line
Here is an example .prettierrc
file with this configuration option:
{
"tabWidth": 4,
"singleAttributePerLine": false,
"plugins": [
"./node_modules/prettier-plugin-blade/"
],
"overrides": [
{
"files": [
"*.blade.php"
],
"options": {
"parser": "blade"
}
}
]
}
In addition you also need a compatible "printWidth": 300
, as much needed for your use case.
Thanks!
It formats this
To this
Iis there any option to avoid this behavior ? I wanna keep blade attributes on same line