Skip to content

refactor(create-vite): migrate tseslint.config to ESLint core's defineConfig#20734

Merged
sapphi-red merged 1 commit intovitejs:mainfrom
bxacosta:migrate-to-defineconfig
Sep 8, 2025
Merged

refactor(create-vite): migrate tseslint.config to ESLint core's defineConfig#20734
sapphi-red merged 1 commit intovitejs:mainfrom
bxacosta:migrate-to-defineconfig

Conversation

@bxacosta
Copy link
Copy Markdown
Contributor

@bxacosta bxacosta commented Sep 8, 2025

This PR updates the ESLint configuration for the React + TypeScript template, aligning it with the latest typescript-eslint v8.42.0 release, where tseslint.config(...) was deprecated.

Changes

  • Migrated the ESLint config from tseslint.config(...) to ESLint core’s defineConfig(...).
  • Updated the README to replace usage examples with defineConfig.
  • Removed unnecessary spread operator (...) inside extends, since extends can directly accept an array of configurations without spread syntax.

References

@sapphi-red sapphi-red added feat: create-vite create-vite package p2-nice-to-have Not breaking anything but nice to have (priority) labels Sep 8, 2025
@sapphi-red sapphi-red changed the title chore(create-vite): migrate tseslint.config to ESLint core's defineConfig refactor(create-vite): migrate tseslint.config to ESLint core's defineConfig Sep 8, 2025
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

Thanks!

@sapphi-red sapphi-red merged commit feeb8bc into vitejs:main Sep 8, 2025
19 checks passed
@bxacosta bxacosta deleted the migrate-to-defineconfig branch September 9, 2025 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: create-vite create-vite package p2-nice-to-have Not breaking anything but nice to have (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants