Skip to content

Chore/nodejs#8

Merged
firestar300 merged 6 commits intodevelopfrom
chore/nodejs
Apr 20, 2026
Merged

Chore/nodejs#8
firestar300 merged 6 commits intodevelopfrom
chore/nodejs

Conversation

@firestar300
Copy link
Copy Markdown
Collaborator

@firestar300 firestar300 commented Apr 20, 2026

  • Set Node JS Version in package.json
  • Add Quality JS workflow

Note

Medium Risk
CI and linting changes are low risk, but pinning/upgrading WordPress packages and pulling in new transitive deps may cause build/runtime incompatibilities (notably Node engine expectations) that need verification.

Overview
Adds a repo-level ESLint config (.eslintrc) and a new GitHub Actions workflow (quality-js.yml) that runs npm ci and npm run lint:js src on pushes to main and PRs touching src/** (with concurrency cancellation).

Pins several @wordpress/* dependencies to specific versions (instead of latest), adds new runtime deps (@wordpress/components, @wordpress/element), switches @wordpress/env to latest, and updates package-lock.json accordingly (including new transitive packages and removals).

Includes small lint-driven refactors/doc updates in src/blockparty-iframe (JSDoc parameter annotations and a variable rename in parseIframeCode).

Reviewed by Cursor Bugbot for commit 0f1b733. Bugbot is set up for automated code reviews on this repo. Configure here.

Adds a Volta configuration to package.json to ensure consistent Node.js version usage across development environments.
Introduces a GitHub Action to automate JavaScript quality checks for changes within the src directory. The workflow runs the project's linting script to ensure code consistency across pull requests and the main branch.
Ensures the workflow triggers on all pull requests and pushes to the main branch, regardless of whether the changes occurred within the src directory. This ensures that modifications to root-level configuration files or scripts are also validated.
Pins WordPress packages to specific versions, adds missing dependencies for components and elements, and adds JSDoc documentation for block props. Also includes a minor refactor in utility functions to improve variable naming.
Introduces a project-level ESLint configuration that extends the recommended WordPress plugin ruleset. This ensures consistent code quality standards across the repository and supports the existing JavaScript linting workflow.
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0f1b733. Configure here.

Comment thread package.json
@firestar300 firestar300 merged commit 00d619a into develop Apr 20, 2026
3 checks passed
@firestar300 firestar300 deleted the chore/nodejs branch April 20, 2026 14:11
@firestar300 firestar300 restored the chore/nodejs branch April 20, 2026 14:12
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