Skip to content

chore: update tsconfig target from es5 to es2022#363

Merged
DMartens merged 1 commit intomainfrom
chore/fix-tsconfig-target
Mar 25, 2026
Merged

chore: update tsconfig target from es5 to es2022#363
DMartens merged 1 commit intomainfrom
chore/fix-tsconfig-target

Conversation

@amareshsm
Copy link
Copy Markdown
Member

Prerequisites checklist

AI acknowledgment

  • [] I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

The target: "es5" was a leftover from the original Create React App scaffold and has been misleading since the project migrated to Vite.

Vite explicitly ignores tsconfig.json target — it uses build.target in vite.config.ts for actual browser output (defaulting to baseline-widely-available). The tsconfig target only affects:

  • What TypeScript's type-checker considers valid syntax
  • IDE autocompletion and inline error hints

Docs reference - https://vite.dev/guide/features#target

What changes did you make? (Give an overview)

es2022 aligns the tsconfig with what Vite actually emits, enables the correct useDefineForClassFields: true default, and removes misleading IDE signals that modern syntax is disallowed."

Related Issues

Is there anything you'd like reviewers to focus on?

The `target: "es5"` was a leftover from the original Create React App
scaffold and has been misleading since the project migrated to Vite.

Vite explicitly ignores `tsconfig.json` target — it uses `build.target`
in vite.config.ts for actual browser output (defaulting to
`baseline-widely-available`). The tsconfig target only affects:
- What TypeScript's type-checker considers valid syntax
- IDE autocompletion and inline error hints

`es2022` aligns the tsconfig with what Vite actually emits, enables
the correct `useDefineForClassFields: true` default, and removes
misleading IDE signals that modern syntax is disallowed."
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 25, 2026

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit d0b74fb
🔍 Latest deploy log https://app.netlify.com/projects/eslint-code-explorer/deploys/69c3b9336ea0c80008db22c0
😎 Deploy Preview https://deploy-preview-363--eslint-code-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@eslintbot eslintbot added this to Triage Mar 25, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Mar 25, 2026
Copy link
Copy Markdown
Contributor

@DMartens DMartens left a comment

Choose a reason for hiding this comment

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

Changes LGTM, thanks.

@DMartens DMartens merged commit 4139da0 into main Mar 25, 2026
10 checks passed
@DMartens DMartens deleted the chore/fix-tsconfig-target branch March 25, 2026 15:54
@github-project-automation github-project-automation Bot moved this from Needs Triage to Complete in Triage Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants