diff --git a/composer.json b/composer.json index 4b5472ec4ec..6b96d22c33d 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,9 @@ "phpcs": [ "phpcs -s -p" ], + "phpcs-pre-commit": [ + "phpcs -s -p -n" + ], "phpcbf": [ "phpcbf -p" ] diff --git a/package.json b/package.json index 39bf0863bc2..d1474c77bd3 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "linters": { "*.php": [ "php -d display_errors=1 -l", - "composer run-script phpcs" + "composer run-script phpcs-pre-commit" ], "*.scss": [ "stylelint --syntax=scss --fix",