Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding eslint, prettier and phpcs to the project. #2

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ryanwelcher
Copy link
Contributor

@ryanwelcher ryanwelcher commented May 24, 2022

@mburridge as we discussed, this PR adds some code quality tools and related scripts to make formatting to best practices easier.

Overview of changes:

  • Explicitly adding some packages to package.json to force the use of the correct prettier fork the WordPress project uses
  • Adding composer.json file to install PHPCS and provide some linting commands
  • Adding phpcs.xml to allow the IDE to scan PHP code for issues
  • Adding eslint related files allow the IDE to scan JS code for isse
  • Adds the format:js command to scan and fix any issues in JS
  • Adds the setup command to install NPM and composer dependencies all at one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant