SublimePhpCsFixer icon indicating copy to clipboard operation
SublimePhpCsFixer copied to clipboard

Laravel Pint support

Open plakhin opened this issue 10 months ago • 2 comments

It would be super nice to have Laravel Pint support. Running it is as easy as pint $filename so should be very quick to implement (unfortunately one can't just set "path": "pint" as it needs only 1 param that should be a path or a filename). And it is based on PHP-CS-Fixer, so any PHP-CS-Fixer rules can be used in pint config.

plakhin avatar Mar 29 '24 11:03 plakhin

Hi! This is an interesting suggestion, thank you! I'll take a closer look as soon as I can!

adael avatar Mar 29 '24 12:03 adael

If someone interested find this issue, currently I'm using this simple workaround:

config:

{
    "on_save": true,
    "path": "/Users/stan/php-cs-fixer-pint.sh",
}

php-cs-fixer-pint.sh:

#!/bin/sh

pint $4

plakhin avatar Apr 04 '24 15:04 plakhin