diff --git a/plugins/woocommerce-admin/package.json b/plugins/woocommerce-admin/package.json index bbc34b10a43..bdae8f6b8c8 100644 --- a/plugins/woocommerce-admin/package.json +++ b/plugins/woocommerce-admin/package.json @@ -17,12 +17,14 @@ "postbuild": "npm run -s i18n:php && npm run -s i18n:pot", "prestart": "npm run -s install-if-deps-outdated", "start": "webpack --watch", - "lint": "npm run -s install-if-deps-outdated && eslint client --ext=js,jsx", "i18n:js": "cross-env NODE_ENV=production babel client -o /dev/null", "i18n:php": "pot-to-php ./languages/wc-admin.pot ./languages/wc-admin.php wc-admin", "i18n:pot": "grunt makepot", "i18n:check": "grunt checktextdomain", "i18n": "npm run -s i18n:js && npm run -s i18n:php && npm run -s i18n:check && npm run -s i18n:pot", + "lint": "npm run lint:js && npm run lint:php", + "lint:js": "npm run -s install-if-deps-outdated && eslint client --ext=js,jsx", + "lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)", "precommit": "npm run -s install-if-no-packages && node bin/pre-commit-hook.js", "prepush": "npm run -s install-if-no-packages && node bin/pre-push-hook.js", "pretest": "npm run -s install-if-no-packages",