diff --git a/How-to-set-up-WooCommerce-development-environment.md b/How-to-set-up-WooCommerce-development-environment.md index 96a4d1a..abaa2ef 100644 --- a/How-to-set-up-WooCommerce-development-environment.md +++ b/How-to-set-up-WooCommerce-development-environment.md @@ -9,6 +9,7 @@ This page will guide you through the process of setting up WooCommerce developme - [Configure a local WordPress instance with WP-ENV](#configure-a-local-wordpress-instance-with-wp-env) - [Clone WooCommerce repository](#clone-woocommerce-repository) - [Install dependencies and generate assets](#install-dependencies-and-generate-assets) +- [Run the lint tools](#run-the-lint-tools) - [WooCommerce Admin Development](#wooCommerce-admin-development) - [Debugging](#debugging) - [IDE integrations](#ide-integrations) @@ -215,6 +216,24 @@ To trigger a one-time rebuild, run pnpm nx build woocommerce-legacy-assets ``` +## Run the lint tools + +### Lint JS + +``` +pnpx nx lint:js woocommerce +``` + +### Lint PHP + +``` +cd plugins/woocommerce +composer run-script phpcs + +# Standardize lint Executor https://github.com/woocommerce/woocommerce/issues/32554 +pnpx nx lint:php woocommerce +``` + ## WooCommerce Admin Development WooCommerce Admin is a dependency of WooCommerce, so when you build woocommerce via nx, it will automatically build the WooCommerce Admin.