Skip to content

feat(deps)!: support TypeScript 6#218

Open
salza80 wants to merge 5 commits into
mainfrom
packageupdates
Open

feat(deps)!: support TypeScript 6#218
salza80 wants to merge 5 commits into
mainfrom
packageupdates

Conversation

@salza80

@salza80 salza80 commented Jun 19, 2026

Copy link
Copy Markdown

closes #213
This PR resolves the TypeScript 6 peer dependency blockers by updating typescript-eslint and @eslint-react/eslint-plugin to versions that accept TypeScript 6, while keeping the package compatible with TypeScript 5.9. ESLint remains on v9; an ESLint 10 migration is not required for this fix. Because the upgraded @eslint-react stack requires Node.js 22+, the package now declares Node 22 as its minimum runtime.

On updating telementarydeck-vue to latest packages - this package was a blocker for updating to typescript 6.

BREAKING CHANGE: Node.js 22 or newer is now required.
We need to require Node 22 because this PR upgrades @eslint-react/eslint-plugin to v5, and that package’s dependency tree declares engines.node >=22.0.0.

Summary

  • Allow consumers to use TypeScript 6
  • Update TypeScript-aware ESLint tooling
  • Migrate @eslint-react rules for the newer plugin version
  • Require Node.js >=22
  • Keep npm audit clean by omitting peer-only install trees and making postcss explicit

Breaking Change

Node.js 22 or newer is now required.

Copilot AI review requested due to automatic review settings June 19, 2026 15:24
@pkg-pr-new

pkg-pr-new Bot commented Jun 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@peerigon/configs@218

commit: c938db7

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

This PR updates @peerigon/configs to support TypeScript 6 for consumers by widening the TypeScript peer dependency range and upgrading the repo’s TypeScript + related ESLint tooling that previously blocked TS6.

Changes:

  • Widen typescript peer dependency to ^5.9.3 || >=6.0.0 <6.1.0 and bump local dev TypeScript to ^6.0.3.
  • Upgrade ESLint ecosystem deps (notably typescript-eslint, @tanstack/eslint-plugin-query, @eslint-react/eslint-plugin) to versions compatible with TS6.
  • Update ESLint React rule IDs/config to match @eslint-react v5 and avoid duplicated hook rules (keeping eslint-plugin-react-hooks as the source of truth).

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tsconfig.json Adds Node typings to the repo build tsconfig.
package.json Updates dependency versions and widens TypeScript peer range for TS6 support.
package-lock.json Refreshes the lockfile to reflect upgraded dependencies.
eslint/rules/react.js Updates @eslint-react rule IDs/config and disables duplicate hook rules.
eslint/presets/typescript.test/main.ts Simplifies fixture by removing a redundant dot-notation-related example.
eslint/presets/typescript-react.test/App.tsx Updates ESLint disable comments for renamed @eslint-react rule IDs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
@salza80 salza80 self-assigned this Jun 19, 2026
@salza80 salza80 changed the title chore: security dependency updates and allow consumers to yuse Typescript 6. chore: security dependency updates and allow consumers to use Typescript 6. Jun 19, 2026
@salza80 salza80 changed the title chore: security dependency updates and allow consumers to use Typescript 6. feat(deps)!: support TypeScript 6 Jun 19, 2026
@salza80 salza80 requested a review from Copilot June 19, 2026 16:52

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

Copilot reviewed 5 out of 7 changed files in this pull request and generated no new comments.

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

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Comment thread package.json
Comment on lines 126 to 129
"prettier": "^3.6.2",
"semantic-release": "^25.0.1",
"typescript": "^5.9.3"
"typescript": "^5.9.3 || >=6.0.0 <6.1.0"
},

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The range is intentionally capped at <6.1.0 because the current typescript-eslint peer dependency is >=4.8.4 <6.1.0. Widening our peer to all TypeScript 6 versions would make @peerigon/configs claim support for versions that the underlying TypeScript ESLint tooling does not yet accept in strict installs. We can widen this once typescript-eslint publishes support for TS 6.1+.

@salza80 salza80 requested a review from Copilot June 19, 2026 17:24
@salza80 salza80 added the dependencies Pull requests that update a dependency file label Jun 19, 2026

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

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Comment thread package.json
Comment on lines 79 to 88
"dependencies": {
"@eslint-react/eslint-plugin": "^2.13.0",
"@eslint-react/eslint-plugin": "^5.9.0",
"@eslint/compat": "^2.0.3",
"@eslint/js": "^9.39.1",
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
"@prettier/plugin-oxc": "^0.1.3",
"@sebbo2002/semantic-release-jsr": "^3.2.1",
"@semantic-release/exec": "^7.1.0",
"@tanstack/eslint-plugin-query": "^5.96.1",
"@tanstack/eslint-plugin-query": "^5.101.0",
"@types/eslint-config-prettier": "^6.11.3",
Comment thread package.json
Comment on lines +144 to +146
"engines": {
"node": ">=22"
},
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to ESLint 10 and TypeScript 6

2 participants