Skip to content

Commit

Permalink
ci: install and configure Laravel Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandhi11 committed Oct 3, 2022
1 parent ae08fc9 commit 26b30ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"require-dev": {
"exolnet/phpcs-config": "^2.0",
"laravel/pint": "^1.2",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^6.0|^7.0",
"phpunit/phpunit": "^9.3.3",
Expand All @@ -48,8 +49,16 @@
}
},
"scripts": {
"lint": "vendor/bin/phpcs -p -s --standard=ruleset.xml",
"lint:fix": "vendor/bin/phpcbf -p --standard=ruleset.xml",
"lint": [
"@lint:phpcs",
"@lint:pint"
],
"lint:fix": [
"vendor/bin/phpcbf -p --standard=ruleset.xml",
"vendor/bin/pint"
],
"lint:phpcs": "vendor/bin/phpcs -p -s --standard=ruleset.xml",
"lint:pint": "vendor/bin/pint --test",
"test": "vendor/bin/phpunit",
"test:coverage": "vendor/bin/phpunit --coverage-html coverage"
},
Expand Down
3 changes: 3 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"preset": "psr12"
}

0 comments on commit 26b30ef

Please sign in to comment.