Shuhei Hayashibara

Results 56 comments of Shuhei Hayashibara

I have recently created a formatter for blade. Using prettier and plugin-php inside it. https://github.com/shufo/blade-formatter It's not based on blade dedicated lexer or parser so supported syntax is limited. I...

I noticed this issue is recently active again so I released prettier plugin for blade https://github.com/shufo/prettier-plugin-blade It's not lexer based plugin generating ASTs, so there is a bit of limitation,...

Hi @Wulfheart Thanks for suggesting the style. I also considering which indentation position we should use for Opening PHP tag, then when I looked at the coding standards such as...

Fixed at https://github.com/shufo/blade-formatter/releases/tag/v1.30.2

Tried installation on mac machine on CI and exec formatter but it seems format successfully. https://github.com/shufo/blade-formatter/runs/4090339705?check_suite_focus=true @pboese Can you provide more specific information like package list in package.json, mac os...

@BMasquio Thanks for the feature suggestion! This could be done with other tools like sed. e.g. ```bash find resources/**/*.blade.php | xargs sed -i '/^$/d' ``` I'd think it's not bad...

@formikaio Thank you for reporting issue. blade-formatter currently formats php strings as php `7.4` and php version above 7.3 supprots [trailing commas in functions](https://laravel-news.com/php-trailing-commas-functions). ![image](https://user-images.githubusercontent.com/1641039/111906987-b2894480-8a96-11eb-8364-6ec989c97ef0.png) ![image](https://user-images.githubusercontent.com/1641039/111906974-a4d3bf00-8a96-11eb-8fce-5b1d2c98c813.png) If your environment is...

Sorry there is no sublime text integration yet because sublime package is based on python but blade-formatter is based on npm module. I think it's possible if there is a...

## Workaround ### Split large file into components Laravel supports anonymous components, so you can split them into components as you needed. https://laravel.com/docs/9.x/blade#anonymous-components Large files composed of small reusable parts...

@netway-pairote Thanks for reporting issue! I'll try reproducing it.