{"repo":"shufo/prettier-plugin-blade","free":true,"listed":false,"github":"https://github.com/shufo/prettier-plugin-blade","clone":"git clone https://github.com/shufo/prettier-plugin-blade.git","description":"Format your blade template using Prettier","language":"TypeScript","stars":397,"topics":["blade","formatter","laravel","prettier","tailwind"],"license":"MIT","category":"dev-tools","readme_excerpt":"Prettier Blade Plugin Format your blade template using Prettier Features - Automatically indent markup inside directives - Automatically add spacing to blade template markers - PHP 8 syntax support (null safe operator, named arguments) - Compliant to PSR-2 coding standard (PHP code inside directives) - Automatically sort Tailwind CSS classes with respect of tailwind.config.js Installation then, add in your Prettier configuration: Prettier version Compatibilitiy Prettier Package -------: ------: 3.x ^1.9.x 2.x 1.8.x Usage (CLI) https://user-images.githubusercontent.com/1641039/151354641-6305805e-8e0c-4226-8331-64195f85160e.mp4 Example Input Output Options You can use these options for prettier blade plugin in prettier CLI. key description ----------------------------: :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ --tab-width Number of spaces per indentation level. default: 4 --print-width The line length where Prettier will try wrap. default: 120 --wrap-attributes The way to wrap attributes. [ auto \\ force \\ force-aligned \\ force-expand-multiline \\ aligned-multiple \\ preserve \\ preserve-aligned ]. default: auto --wrap-attributes-min-attrs Minimum number of html tag attributes for force wrap attribute options. Wrap the first attribute only if 'force-expand","default_branch":null,"files":null,"tree":[],"storefront":"/r/shufo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shufo/prettier-plugin-blade/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}