👷 Replace phpcs with Pint (#3161)
➕ Add `laravel/pint` to the project ➖ Remove `squizlabs/php_codesniffer` from the project 🔧 Remove deprecated Composer scripts 👷 Replace phpcs with Pint 🎨 Run Pint --------- Co-authored-by: Ben Word <ben@benword.com>
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -80,5 +80,5 @@ jobs:
|
|||||||
- name: Install Composer dependencies
|
- name: Install Composer dependencies
|
||||||
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest
|
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest
|
||||||
|
|
||||||
- name: Execute the PHP lint script
|
- name: Run Pint
|
||||||
run: composer run-script lint
|
run: vendor/bin/pint --test
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
"php": ">=8.1"
|
"php": ">=8.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"squizlabs/php_codesniffer": "3.8.1"
|
"laravel/pint": "^1.13"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"log1x/sage-directives": "A collection of useful Blade directives for WordPress and Sage (^1.0).",
|
"log1x/sage-directives": "A collection of useful Blade directives for WordPress and Sage (^1.0).",
|
||||||
@@ -55,11 +55,6 @@
|
|||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"scripts": {
|
|
||||||
"lint": [
|
|
||||||
"phpcs --extensions=php --standard=PSR12 app"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"acorn": {
|
"acorn": {
|
||||||
"providers": [
|
"providers": [
|
||||||
|
|||||||
Reference in New Issue
Block a user