Skip to content

chore(deps): drop @wordpress/scripts and add Dependabot - #39

Merged
Hug0-Drelon merged 2 commits into
masterfrom
chore/remove-wp-scripts
Aug 28, 2026
Merged

Hug0-Drelon merged 2 commits into
masterfrom
chore/remove-wp-scripts

Conversation

@Hug0-Drelon

@Hug0-Drelon Hug0-Drelon commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

What?

  • Replace @wordpress/scripts with ESLint (@wordpress/eslint-plugin) and npmPkgJsonLint.
  • Add Dependabot for npm: production (none today) plus the Babel build tools (@babel/cli, @babel/core, @wordpress/babel-preset-default), grouped as build-tools.
  • Request a review on Dependabot PRs (dependabot-reviewer.yml). Set GH_REPO so gh works without a checkout.
  • Require Node 22 (.nvmrc, package.json engines, README). CI already used Node 22.

Why?

lint only needed ESLint. @wordpress/scripts pulled a large unused tree and noisy Dependabot updates. This library ships Babel-compiled JS, not a webpack bundle, and has no runtime dependencies; peer ranges should not be bumped weekly. Node 18/20 pins were behind CI.

How?

Standalone eslint.config.cjs with WordPress recommended rules and peer packages as import/core-modules. Weekly Dependabot (Monday 07:00 Europe/Paris). allow also applies to security PRs. Reviewer workflow uses pull_request plus GH_REPO: ${{ github.repository }}.

Test plan

  • npm ci succeeds
  • npm run lint and npm run lint:pkg-json pass
  • npm run build succeeds
  • No wp-scripts / @wordpress/scripts in package.json or workflows
  • After merge, a Dependabot PR requests review from @Hug0-Drelon
  • .nvmrc and engines.node are 22; lint/publish workflows use Node 22

Lint with ESLint instead of wp-scripts, and limit Dependabot to the Babel toolchain that compiles shipped JS.
Align nvm, package engines, and docs with the Node 22 CI image.
@Hug0-Drelon Hug0-Drelon self-assigned this Aug 28, 2026
@Hug0-Drelon Hug0-Drelon added enhancement New feature or request dependencies Pull requests that update a dependency file labels Aug 28, 2026
@Hug0-Drelon
Hug0-Drelon merged commit 1607bea into master Aug 28, 2026
2 checks passed
@Hug0-Drelon
Hug0-Drelon deleted the chore/remove-wp-scripts branch August 28, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant