Skip to content

Update coding standards, add wp-env and Codespaces config#56

Open
jeremyfelt wants to merge 6 commits intotrunkfrom
update/coding-standards-and-tooling
Open

Update coding standards, add wp-env and Codespaces config#56
jeremyfelt wants to merge 6 commits intotrunkfrom
update/coding-standards-and-tooling

Conversation

@jeremyfelt
Copy link
Copy Markdown
Member

Summary

  • Migrate ESLint to flat config format (eslint.config.mjs) with @happyprime/eslint-config 1.0.0
  • Standardize on @happyprime/stylelint-config, @happyprime/postcss-config, and Prettier configs
  • Add/update phpcs.xml.dist with HappyPrime ruleset and phpstan.neon.dist for static analysis
  • Add .editorconfig and .browserslistrc where missing
  • Add .wp-env.json for local WordPress development via @wordpress/env
  • Add .devcontainer/ for GitHub Codespaces support (PHP 8.4, Node 22, Docker-in-Docker)

Test plan

  • Run npm install && npm run build to verify JS/CSS pipeline
  • Run composer install && composer lint to verify PHP standards
  • Run npx wp-env start to verify local environment
  • Open in GitHub Codespaces to verify devcontainer

🤖 Generated with Claude Code

claude added 4 commits March 26, 2026 11:34
Migrate to latest Happy Prime coding standards:
- ESLint flat config with @happyprime/eslint-config 1.0.0
- Standardize stylelint, postcss, and prettier configs
- Add/update phpcs.xml.dist with HappyPrime ruleset
- Add/update phpstan.neon.dist for static analysis
- Add .editorconfig and .browserslistrc where missing

Add development environment tooling:
- .wp-env.json for local WordPress development
- .devcontainer/ for GitHub Codespaces support
- Remove .devcontainer/ (not using Codespaces)
- Update verify-build workflow to Node 24
- Add missing phpcs/phpstan/verify-build workflows
- Fix CSS lint errors and PHP coding standards violations
- Add phpstan ignoreErrors for third-party plugin dependencies
- Install glob dependency for webpack-based builds
- Resolve browserslist config conflicts
- Pin phpcompatibility/php-compatibility to commit 9f71423 (version 9.99.9)
  for compatibility with phpcodesniffer 3.x
- Add @wordpress/env and wp-env scripts to package.json
- Run composer update to refresh all dependencies
- Remove .cursor directory
@github-actions
Copy link
Copy Markdown

Changed files were detected after build. Please run project build workflows and check git status for any missed changes.

 M package-lock.json

You may need to update your local NPM configuration if different than below:

  • Node v24.14.0
  • NPM 11.12.1

- Update @wordpress/env to ^11.2.0
- Sort devDependencies alphabetically
@github-actions
Copy link
Copy Markdown

Changed files were detected after build. Please run project build workflows and check git status for any missed changes.


You may need to update your local NPM configuration if different than below:

  • Node
  • NPM

- Rename wp-env:* scripts to env:* for friendlier commands
- Set phpVersion to 8.4 in .wp-env.json
- Set testsEnvironment to false to suppress deprecation warning
@github-actions
Copy link
Copy Markdown

Changed files were detected after build. Please run project build workflows and check git status for any missed changes.


You may need to update your local NPM configuration if different than below:

  • Node
  • NPM

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.

2 participants