-
Notifications
You must be signed in to change notification settings - Fork 51
[WIP] chore(frontend): upgrade react, next and eslint, update next configs #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | ||||
| import { defineConfig } from "eslint/config"; | ||||
| import nextVitals from "eslint-config-next/core-web-vitals"; | ||||
|
|
||||
| import prettierConfig from "eslint-config-prettier"; | ||||
| import prettierPlugin from "eslint-plugin-prettier"; | ||||
| import unusedImports from "eslint-plugin-unused-imports"; | ||||
|
|
||||
| export default defineConfig([ | ||||
|
Comment on lines
+1
to
+8
|
||||
| nextVitals, | ||||
| prettierConfig, | ||||
|
|
||||
| { | ||||
| plugins: { | ||||
| prettier: prettierPlugin, | ||||
| "unused-imports": unusedImports, | ||||
| }, | ||||
| rules: { | ||||
| "prettier/prettier": "warn", | ||||
| "unused-imports/no-unused-imports": "warn", | ||||
| "unused-imports/no-unused-vars": "warn", | ||||
|
||||
| "unused-imports/no-unused-vars": "warn", |
Copilot
AI
Dec 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old ESLint configuration file .eslintrc.json should be deleted since this PR migrates to ESLint 9's flat config format. Having both configuration files present could cause confusion and unexpected behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import statement uses a non-standard path. According to the package.json, the package is "eslint-config-next", so the import should be:
Not
"eslint-config-next/core-web-vitals". While this may work with some configurations, the standard ESLint 9 flat config for Next.js should import the package directly.