Skip to content

Migrate to ESLint flat config and update dependencies - #625

Closed
olethomas wants to merge 4 commits into
mainfrom
update-dependencies-2026-04
Closed

olethomas wants to merge 4 commits into
mainfrom
update-dependencies-2026-04

Conversation

@olethomas

Copy link
Copy Markdown
Member

This pull request updates the project's linting configuration to use the new ESLint flat config format, consolidates ignore patterns, and upgrades several dependencies for improved compatibility and features. The most important changes are grouped below:

ESLint Configuration Modernization:

  • Migrated from the legacy .eslintrc.js and .eslintignore files to the new flat config format in eslint.config.js, consolidating ignore patterns and project-specific overrides, and aligning with the latest ESLint and WordPress recommendations. ([[1]](https://github.com/DekodeInteraktiv/project-base/pull/625/files#diff-a32a0887ed9d1d707bbb3b845b7df7fd40e673c47e7b60a3ebd896b68d3b8839R1-R44), [[2]](https://github.com/DekodeInteraktiv/project-base/pull/625/files#diff-e2954b558f2aa82baff0e30964490d12942e0e251c1aa56c3294de6ec67b7cf5L1-L25), [[3]](https://github.com/DekodeInteraktiv/project-base/pull/625/files#diff-a0fdacd2ade87c5238dde44378f574f7e123e669acdf8b740878b14b33b20275L1-L6))

Dependency Upgrades:

  • Updated multiple JavaScript development dependencies in package.json, including @wordpress/scripts, autoprefixer, cssnano, dotenv, postcss, postcss-discard-comments, prettier, and turbo to their latest compatible versions for improved stability and features. ([package.jsonL6-R24](https://github.com/DekodeInteraktiv/project-base/pull/625/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L6-R24))
  • Upgraded @wordpress/scripts in packages/themes/block-theme/package.json to maintain consistency across packages. ([packages/themes/block-theme/package.jsonL5-R5](https://github.com/DekodeInteraktiv/project-base/pull/625/files#diff-446c59aebd642dbfc46cfba154678b77556d45bb433031e4dacee69115b452e3L5-R5))
  • Updated the PHP dependency t2/t2 in composer.json to version ~8.29.0. ([composer.jsonL13-R13](https://github.com/DekodeInteraktiv/project-base/pull/625/files#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L13-R13))

Replace legacy ESLint setup by removing .eslintrc.js and .eslintignore and adding a flat eslint.config.js that applies @wordpress/eslint-plugin recommended config with project-specific overrides and global ignores. Bump t2/t2 and related t2 packages from 8.26.0 to 8.29.0 in composer.json/composer.lock. Update Node dev tooling versions in package.json/package-lock (notable updates: @wordpress/scripts, @wordpress/dependency-extraction-webpack-plugin, autoprefixer, cssnano, dotenv, postcss, prettier, turbo and various ESLint/TypeScript related packages). Also update package.json in the block-theme package.
@github-actions

Copy link
Copy Markdown
Composer package changes
Prod Packages Operation Base Target
t2/admin Upgraded 8.26.0 8.29.0
t2/assets Upgraded 8.26.0 8.29.0
t2/block-library Upgraded 8.26.0 8.29.0
t2/blocks Upgraded 8.26.0 8.29.0
t2/config Upgraded 8.26.0 8.29.0
t2/editor Upgraded 8.26.0 8.29.0
t2/extension-library Upgraded 8.26.0 8.29.0
t2/extensions Upgraded 8.26.0 8.29.0
t2/icons Upgraded 8.26.0 8.29.0
t2/registry Upgraded 8.26.0 8.29.0
t2/t2 Upgraded 8.26.0 8.29.0
t2/utils Upgraded 8.26.0 8.29.0

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Modernizes the project’s linting setup by migrating to ESLint’s flat config format and upgrades related JavaScript/PHP dependencies to newer versions.

Changes:

  • Replaced legacy ESLint config files (.eslintrc.js, .eslintignore) with a new eslint.config.js flat config.
  • Upgraded JS tooling dependencies (notably @wordpress/scripts and related PostCSS/formatting packages) and refreshed package-lock.json.
  • Bumped t2/t2 PHP dependency to ~8.29.0 and updated composer.lock accordingly.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
eslint.config.js Introduces ESLint flat config, consolidated ignores, and project overrides.
package.json Updates JS dev dependencies (including @wordpress/scripts) used by lint/build tooling.
package-lock.json Locks updated dependency graph matching the upgraded toolchain.
packages/themes/block-theme/package.json Aligns theme workspace tooling with updated @wordpress/scripts.
composer.json Updates t2/t2 version constraint to ~8.29.0.
composer.lock Reflects resolved PHP dependency updates for the new t2/t2 version.
.eslintrc.js Removed legacy ESLint configuration file.
.eslintignore Removed legacy ESLint ignore file (replaced by flat-config ignores).

Comment thread eslint.config.js Resolved
Comment thread package.json Resolved
Comment thread eslint.config.js Resolved
Update eslint.config.js: change the globals entry for `wp` from false to 'off' to disable that global and adjust linting behavior accordingly.
@olethomas
olethomas requested a review from a team April 29, 2026 12:33
@olethomas

Copy link
Copy Markdown
Member Author

Superseeded by: #628

@olethomas olethomas closed this Jun 26, 2026
@stian-overasen
stian-overasen deleted the update-dependencies-2026-04 branch September 11, 2026 14:00
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.

3 participants