As a helpful development tool, you can enable automatic linting before commiting.
- Run
npm install
. - Before development, run
composer install
- After you're done run
composer install --no-dev
to remove development dependencies
(Steps 2 and 3 will be removed once we have an automated build process. See wp-graphql#224)
Your changed files will now be linted via phpcs and your commit will fail with a list of errors if there are any.