Repository navigation
chore(deps): drop @wordpress/scripts and add Dependabot - #39
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
@wordpress/scriptswith ESLint (@wordpress/eslint-plugin) andnpmPkgJsonLint.@babel/cli,@babel/core,@wordpress/babel-preset-default), grouped asbuild-tools.dependabot-reviewer.yml). SetGH_REPOsoghworks without a checkout..nvmrc,package.jsonengines, README). CI already used Node 22.Why?
lintonly needed ESLint.@wordpress/scriptspulled a large unused tree and noisy Dependabot updates. This library ships Babel-compiled JS, not a webpack bundle, and has no runtimedependencies; peer ranges should not be bumped weekly. Node 18/20 pins were behind CI.How?
Standalone
eslint.config.cjswith WordPress recommended rules and peer packages asimport/core-modules. Weekly Dependabot (Monday 07:00 Europe/Paris).allowalso applies to security PRs. Reviewer workflow usespull_requestplusGH_REPO: ${{ github.repository }}.Test plan
npm cisucceedsnpm run lintandnpm run lint:pkg-jsonpassnpm run buildsucceedswp-scripts/@wordpress/scriptsinpackage.jsonor workflows@Hug0-Drelon.nvmrcandengines.nodeare 22; lint/publish workflows use Node 22