Skip to content

chore: update deps#34

Merged
justlevine merged 2 commits into
mainfrom
chore/eslint-deps
Apr 19, 2026
Merged

chore: update deps#34
justlevine merged 2 commits into
mainfrom
chore/eslint-deps

Conversation

@justlevine
Copy link
Copy Markdown
Collaborator

@justlevine justlevine commented Apr 19, 2026

What

Updates NPM and composer dependencies to their latest versions.

Specifically eslint is now using v10 with the flat config.

Why

Related Issue(s):

How

Testing Instructions

Screenshots

Additional Info

Checklist

Open WordPress Playground Preview

Copilot AI review requested due to automatic review settings April 19, 2026 19:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s JS/PHP tooling dependencies and migrates ESLint to v10’s flat config approach, aligning lint/test tooling with newer WordPress packages.

Changes:

  • Bump NPM and Composer dependencies (notably @wordpress/scripts, @wordpress/eslint-plugin, PHPStan).
  • Replace legacy ESLint config (.eslintrc.js / .eslintignore) with eslint.config.mjs (flat config) and update references in docs/workflows.
  • Adjust TypeScript config to include Jest/Node types and update a PHPUnit compatibility shim in the PHP test base.

Reviewed changes

Copilot reviewed 10 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tsconfig.json Adds global Jest/Node types; excludes eslint.config.mjs from TS compilation.
tests/php/TestCase.php Updates PHPUnit annotation compatibility logic (but introduces a namespacing bug).
src/blocks/interactive-block/__tests__/view.test.ts Removes an ESLint suppression comment around a non-null assertion.
playwright.config.ts Removes an ESLint suppression comment on a require usage.
package.json Updates WordPress/tooling devDependencies and overrides.
eslint.config.mjs Introduces ESLint flat config using WordPress + Jest presets and project rules.
docs/DEVELOPMENT.md Updates docs to reference the new ESLint config file.
composer.lock Updates locked PHP dependencies (e.g., PHPStan).
README.md Updates ESLint config link to eslint.config.mjs.
.github/workflows/test-public-workflows.yml Updates workflow path filters to track eslint.config.mjs.
.eslintrc.js Removed (migrated to flat config).
.eslintignore Removed (migrated to flat config ignores).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/php/TestCase.php Outdated
public function getAnnotations(): array { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid -- Required compatibility method name.
$class_reflection = new \ReflectionClass( static::class );
$method_name = method_exists( $this, 'name' ) ? $this->name() : $this->getName( false );
$class_reflection = new ReflectionClass( static::class );
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReflectionClass is referenced unqualified inside the rtCamp\Plugin_Skeleton_D\Tests namespace, so PHP will try to resolve rtCamp\Plugin_Skeleton_D\Tests\ReflectionClass and this will fatal at runtime. Use the global \ReflectionClass (as before) or add use ReflectionClass; at the top of the file.

Suggested change
$class_reflection = new ReflectionClass( static::class );
$class_reflection = new \ReflectionClass( static::class );

Copilot uses AI. Check for mistakes.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.94%. Comparing base (a9b1753) to head (4b1d834).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #34   +/-   ##
=========================================
  Coverage     94.94%   94.94%           
  Complexity      115      115           
=========================================
  Files            21       21           
  Lines           475      475           
=========================================
  Hits            451      451           
  Misses           24       24           
Flag Coverage Δ
unit 94.94% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@justlevine justlevine merged commit 8530aa4 into main Apr 19, 2026
25 checks passed
@justlevine justlevine deleted the chore/eslint-deps branch April 19, 2026 20:36
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