From d38422e16c63c0dc12e86cc7a259414ff92838ac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 05:11:55 +0000 Subject: [PATCH] Add Laravel Pint configuration and composer scripts Co-authored-by: nomadjimbob <26953208+nomadjimbob@users.noreply.github.com> --- composer.json | 6 ++++++ pint.json | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 pint.json diff --git a/composer.json b/composer.json index 7d96925..5696bfe 100644 --- a/composer.json +++ b/composer.json @@ -52,6 +52,12 @@ "@php artisan key:generate --ansi", "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"", "@php artisan migrate --graceful --ansi" + ], + "pint": [ + "./vendor/bin/pint" + ], + "pint-test": [ + "./vendor/bin/pint --test" ] }, "extra": { diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..dca9072 --- /dev/null +++ b/pint.json @@ -0,0 +1,9 @@ +{ + "preset": "laravel", + "rules": { + "simplified_null_return": true, + "braces": false, + "new_with_braces": true, + "no_unused_imports": true + } +}