Skip to content

fix(tsconfig,jsconfig): add missing ES2022.Regexp and ES2023.Intl lib entries#5643

Merged
madskristensen merged 2 commits into
SchemaStore:masterfrom
nileshpatil6:fix/tsconfig-jsconfig-es2022-regexp-es2023-intl
Apr 30, 2026
Merged

fix(tsconfig,jsconfig): add missing ES2022.Regexp and ES2023.Intl lib entries#5643
madskristensen merged 2 commits into
SchemaStore:masterfrom
nileshpatil6:fix/tsconfig-jsconfig-es2022-regexp-es2023-intl

Conversation

@nileshpatil6
Copy link
Copy Markdown
Contributor

Fixes #5152

What

TypeScript ships es2022.regexp.d.ts and es2023.intl.d.ts as separate lib files, but neither is listed in the compilerOptions.lib enum in the tsconfig.json or jsconfig.json schemas. This causes false validation errors when users set "lib": ["ES2022.Regexp"] or "lib": ["ES2023.Intl"] in their tsconfig/jsconfig.

Changes

Both src/schemas/json/tsconfig.json and src/schemas/json/jsconfig.json:

  • Added "ES2022.Regexp" after "ES2022.Object" (alphabetical order)
  • Added "ES2023.Intl" after "ES2023.Collection" (alphabetical order)

Verification

TypeScript lib source confirms both files exist:

The maintainer also noted in issue #5152 that jsconfig.json would need the same fix.

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

@madskristensen madskristensen merged commit 8c8830c into SchemaStore:master Apr 30, 2026
5 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.

TSConfig schema is outdated! does not support ES2023 for compilerOptions.target and lib

2 participants