Skip to content

Version Packages (alpha) - #261

Merged
ocean90 merged 1 commit into
masterfrom
changeset-release/master
Jul 16, 2026
Merged

Version Packages (alpha)#261
ocean90 merged 1 commit into
masterfrom
changeset-release/master

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

master is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on master.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@wearerequired/eslint-config@7.0.0-alpha.0

Major Changes

  • 3f8da04: Switch to ESLint flat config. The package now exports an array of flat config objects.

    • Raise the eslint peer dependency from >=8 <9 to ^9.0.0 || ^10.0.0. ESLint 10 works when ESLint comes from @wordpress/scripts (v32+, the recommended WordPress setup). A standalone direct ESLint 10 install may need --legacy-peer-deps because the classic eslint-plugin-import@2 bundled by @wordpress/eslint-plugin still stops at ESLint 9 in its peer range (fixed upstream once WordPress moves to eslint-plugin-import-x).
    • Raise the @wordpress/eslint-plugin peer dependency from >=17 <25 to ^25.0.0. This version bundles both typescript-eslint and eslint-import-resolver-typescript as direct dependencies, which fixes the recurring transitive @typescript-eslint resolution failures. The upper bound is kept because the config spreads the plugin's configs.recommended flat-config array, whose shape may change across majors.
    • Refresh the import/core-modules allowlist to the current set of WordPress script packages, so their imports are not reported as unresolved. Adds 20 packages, including @wordpress/preferences, @wordpress/preferences-persistence, @wordpress/commands, @wordpress/interactivity, @wordpress/patterns and @wordpress/router.

    Migration: delete .eslintrc* and .eslintignore, then add an eslint.config.js in your project root:

    const config = require("@wearerequired/eslint-config");
    
    module.exports = config;

@wearerequired/stylelint-config@7.0.0-alpha.0

Major Changes

  • 3f8da04: Update to stylelint 16 and @wordpress/stylelint-config 23.

    • Raise the stylelint peer dependency from ^14 to ^16.8.2 and the @wordpress/stylelint-config peer dependency from ^21 to ^23. Add stylelint-scss (^6.4.0) as a peer dependency.
    • Extend @wordpress/stylelint-config/stylistic (and /scss-stylistic for the SCSS preset) so stylelint keeps enforcing formatting after stylelint 16 moved the stylistic rules into @stylistic/stylelint-plugin. The stylistic rules now carry the @stylistic/ prefix; required's overrides are preserved (max-line-length: 100, max-empty-lines: 1, number-leading-zero: never, function-parentheses-space-inside: always-single-line, function-comma-space-after: always-single-line, media-feature-parentheses-space-inside: always).
    • Remove the @stylistic/stylelint-plugin and stylelint-config-recommended-scss direct dependencies — both are provided transitively by @wordpress/stylelint-config.

    The BEM selector-class-pattern, function-url-quotes, the postcss-mixins at-rule-no-unknown allowance and the *-empty-line-before rules are kept.

@ocean90
ocean90 merged commit c077b46 into master Jul 16, 2026
6 checks passed
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