Skip to content

chore: bump major dependencies and migrate to ESLint flat config - #6

Merged
gokhantaskan merged 2 commits into
mainfrom
bump
Jan 14, 2026
Merged

gokhantaskan merged 2 commits into
mainfrom
bump

Conversation

@gokhantaskan

Copy link
Copy Markdown
Owner
  • Upgrade React 18 to React 19
  • Upgrade MUI 5 to MUI 7
  • Upgrade Vite 5 to Vite 7
  • Upgrade TypeScript 4.x to TypeScript 5.x
  • Upgrade ESLint 8 to ESLint 9 with flat config
  • Upgrade Vitest 2 to Vitest 4
  • Migrate .eslintrc.cjs to eslint.config.ts
  • Migrate .prettierrc.json to prettier.config.ts
  • Update pnpm 9 to pnpm 10

  - Upgrade React 18 to React 19
  - Upgrade MUI 5 to MUI 7
  - Upgrade Vite 5 to Vite 7
  - Upgrade TypeScript 4.x to TypeScript 5.x
  - Upgrade ESLint 8 to ESLint 9 with flat config
  - Upgrade Vitest 2 to Vitest 4
  - Migrate .eslintrc.cjs to eslint.config.ts
  - Migrate .prettierrc.json to prettier.config.ts
  - Update pnpm 9 to pnpm 10
@gokhantaskan
gokhantaskan requested a review from Copilot January 14, 2026 09:21
@netlify

netlify Bot commented Jan 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for extraordinary-meerkat-398bc9 ready!

Name Link
🔨 Latest commit 4792d7c
🔍 Latest deploy log https://app.netlify.com/projects/extraordinary-meerkat-398bc9/deploys/696769a46087070008b6fcc7
😎 Deploy Preview https://deploy-preview-6--extraordinary-meerkat-398bc9.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.

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 pull request aims to upgrade major dependencies including React 18→19, MUI 5→7, Vite 5→7, TypeScript 4.x→5.x, ESLint 8→9, and Vitest 2→4, along with migrating to ESLint flat config and modernizing configuration files. The changes include widespread code reformatting due to updated Prettier settings and removal of deprecated configuration files.

Changes:

  • Major dependency version bumps across the entire stack (React, MUI, Vite, TypeScript, ESLint, Vitest, and many supporting libraries)
  • Migration from ESLint legacy config (.eslintrc.cjs) to flat config (eslint.config.ts)
  • Migration from Prettier JSON config to TypeScript config file
  • Code reformatting and minor code improvements (type safety, syntax modernization)

Reviewed changes

Copilot reviewed 28 out of 31 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Updates all major dependencies to newer versions
eslint.config.ts New ESLint 9 flat config implementation
prettier.config.ts New TypeScript-based Prettier config
.eslintrc.cjs Removed legacy ESLint config
.prettierrc.json Removed JSON Prettier config
.eslintignore Removed (replaced by gitignore integration)
tsconfig.node.json Updated moduleResolution to "Bundler"
pnpm-workspace.yaml Added build dependency configuration
vitest.config.ts Simplified nested defineConfig call
vite.config.ts Code reformatting
src/**/*.tsx Code reformatting and minor improvements (type safety, imports)
README.md Comprehensive documentation rewrite with new structure
index.html Updated DOCTYPE to lowercase
.gitignore Added *.tsbuildinfo to ignore list

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

Comment thread eslint.config.ts Outdated
Comment on lines +14 to +17
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
plugins: { js },
extends: ["js/recommended"],

Copilot AI Jan 14, 2026

Copy link

Choose a reason for hiding this comment

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

The ESLint flat config is using an invalid "extends" property within a config object. In ESLint 9's flat config format, there is no "extends" property. Instead, you should directly spread the recommended config or reference it properly. The line should be removed, and the js.configs.recommended should be spread at the array level instead.

Suggested change
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
plugins: { js },
extends: ["js/recommended"],
...js.configs.recommended,
{

Copilot uses AI. Check for mistakes.
Comment thread src/plugins/hot-toast.tsx Outdated
position="bottom-center"
toastOptions={{
duration: 500000000,
duration: 1_000_000,

Copilot AI Jan 14, 2026

Copy link

Choose a reason for hiding this comment

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

The toast duration has been changed from 500000000 milliseconds (approximately 5787 days) to 1000000 milliseconds (16.67 minutes). While the previous value was likely a placeholder, this new value may still be too long for typical toast notifications. Consider using a more reasonable default like 5000 (5 seconds) for error/success messages, or document why such a long duration is needed.

Suggested change
duration: 1_000_000,
duration: 5_000,

Copilot uses AI. Check for mistakes.
- Update GitHub Actions to v4, Node.js to 20, and pnpm to 10.
- Migrate tests to use @testing-library/user-event for more realistic interactions.
- Fix toast duration and add timing tolerance for flaky tests.
- Fix copilot review issues

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 31 out of 34 changed files in this pull request and generated 3 comments.


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

Comment thread eslint.config.ts
Comment thread package.json
Comment thread eslint.config.ts
@gokhantaskan
gokhantaskan merged commit 0930ecc into main Jan 14, 2026
11 checks passed
@gokhantaskan
gokhantaskan deleted the bump branch January 14, 2026 10:20
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.

2 participants