Repository navigation
feat(stylelint-config)!: require Stylelint 17 and update the lint/stylelint scaffold - #109
Conversation
Match the Stylelint 17 set that @wordpress/scripts 35 to 37 depend on. - Peers: @wordpress/stylelint-config ^25 || ^26 || ^27, stylelint ^17.14.1, stylelint-scss ^7.2.0. - Tests lint real CSS and SCSS through the Stylelint CLI. - README: config-only install with @wordpress/scripts 35+, four-package install without it, and the 1.x upgrade. - Version 2.0.0 with its CHANGELOG heading. BREAKING CHANGE: Stylelint 16 and @wordpress/stylelint-config 23 and 24 are no longer supported. If installing 2.0.0 reports ERESOLVE, uninstall 1.x, plus any Stylelint 16 peers package.json lists, and install again.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
justlevine
left a comment
There was a problem hiding this comment.
FWIW AI is generating docslop because we have already committed docslop here so it think that's part of the design decision. Once this whole repo is manually deslopped it will be easier, but for now we should try to be vigilant before committing any more.
(You can try adding an antislop step to your review loop).
Actual code change lgtm, once the package-lock.json is fixed feel free to ping me again to approve and squash.
…-stylelint-17 # Conflicts: # package-lock.json
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Thanks @justlevine all three review points are fixed comments and docs trimmed, upgrade notes moved to the changelog. Merged main and regenerated the lock, tests pass. Ready for re-approval. |
…lelint scaffold (#109) * feat(stylelint-config)!: require Stylelint 17 Match the Stylelint 17 set that @wordpress/scripts 35 to 37 depend on. - Peers: @wordpress/stylelint-config ^25 || ^26 || ^27, stylelint ^17.14.1, stylelint-scss ^7.2.0. - Tests lint real CSS and SCSS through the Stylelint CLI. - README: config-only install with @wordpress/scripts 35+, four-package install without it, and the 1.x upgrade. - Version 2.0.0 with its CHANGELOG heading. BREAKING CHANGE: Stylelint 16 and @wordpress/stylelint-config 23 and 24 are no longer supported. If installing 2.0.0 reports ERESOLVE, uninstall 1.x, plus any Stylelint 16 peers package.json lists, and install again. * chore(wp-tooling): move the Stylelint scaffold to @rtcamp/stylelint-config 2 * chore(stylelint-config): require Node.js 22.23.4 * docs(stylelint-config): apply review suggestions
…lelint scaffold (#109) * feat(stylelint-config)!: require Stylelint 17 Match the Stylelint 17 set that @wordpress/scripts 35 to 37 depend on. - Peers: @wordpress/stylelint-config ^25 || ^26 || ^27, stylelint ^17.14.1, stylelint-scss ^7.2.0. - Tests lint real CSS and SCSS through the Stylelint CLI. - README: config-only install with @wordpress/scripts 35+, four-package install without it, and the 1.x upgrade. - Version 2.0.0 with its CHANGELOG heading. BREAKING CHANGE: Stylelint 16 and @wordpress/stylelint-config 23 and 24 are no longer supported. If installing 2.0.0 reports ERESOLVE, uninstall 1.x, plus any Stylelint 16 peers package.json lists, and install again. * chore(wp-tooling): move the Stylelint scaffold to @rtcamp/stylelint-config 2 * chore(stylelint-config): require Node.js 22.23.4 * docs(stylelint-config): apply review suggestions
What this PR does
Releases
@rtcamp/stylelint-config2.0.0, which requires Stylelint 17. 1.x asks for Stylelint 16 and@wordpress/stylelint-config23, so next to@wordpress/scripts35 or later npm either installs a second, older Stylelint set (withoutlegacy-peer-deps) or reports all three peers as invalid (with it).Changes
@wordpress/stylelint-config^25.0.0 || ^26.0.0 || ^27.0.0,stylelint^17.14.1,stylelint-scss^7.2.0.index.jsis unchanged.engines.nodeis>=22.23.4, the version in.nvmrcand the CI matrix since fix: move Node.js to a release patched for CVE-2026-111497 #101.@wordpress/scripts35+ install the config on its own and reuse the Stylelint set scripts brings; other projects install the three peers too. Upgrading from 1.x runs the same install; if npm reportsERESOLVE, uninstall 1.x (plus any Stylelint 16 peerspackage.jsonlists) and install again.lint/stylelintscaffold installs@rtcamp/stylelint-config^2.0.0 withstylelint^17.14.1,@wordpress/stylelint-config^27.0.0 andstylelint-scss^7.2.0, the versions@wordpress/scripts37 depends on.How I verified
Config-only install of the packed tarball in fresh
@wordpress/scripts35.0.0, 36.1.0 and 37.2.0 projects: adds one package, reuses scripts'@wordpress/stylelint-config(25.0.0, 26.1.0, 27.2.0), andwp-scripts lint-stylereportsblock-no-emptyandscss/at-extend-no-missing-placeholder.Upgrade from 1.1.0 with the packed tarball:
npm uninstalllegacy-peer-depsERESOLVE@rtcamp/stylelint-configERESOLVENo Stylelint 16 packages are left afterwards. The theme and plugin
lint:cssoutput is unchanged, and the theme'snpm ls viteno longer reports Vite 8 as invalid against@wordpress/theme0.17.0.Scaffold, in a fresh
@wordpress/scripts37.2.0 project with the packed tarball standing in for@rtcamp/stylelint-config@^2.0.0:The install leaves one Stylelint 17 set, shared with
@wordpress/scripts.