Skip to content

Commit 1ff3222

Browse files
Add pint config file and util composer scripts for linting (#201)
1 parent 8be1cc0 commit 1ff3222

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
npm install
3535
3636
- name: Run Pint
37-
run: vendor/bin/pint
37+
run: composer lint
3838

3939
# - name: Commit Changes
4040
# uses: stefanzweifel/git-auto-commit-action@v7

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@
5050
"Composer\\Config::disableProcessTimeout",
5151
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others"
5252
],
53+
"lint": [
54+
"pint --parallel"
55+
],
56+
"test:lint": [
57+
"pint --parallel --test"
58+
],
5359
"test": [
5460
"@php artisan config:clear --ansi",
61+
"@test:lint",
5562
"@php artisan test"
5663
],
5764
"post-autoload-dump": [

pint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"preset": "laravel"
3+
}

0 commit comments

Comments
 (0)