This repository was archived by the owner on Aug 10, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
03-url-bookmark-saver/frontend
04-architecture-diagram/frontend Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { dirname } from "path" ;
2- import { fileURLToPath } from "url" ;
3- import { FlatCompat } from "@eslint/eslintrc" ;
4-
5- const __filename = fileURLToPath ( import . meta. url ) ;
6- const __dirname = dirname ( __filename ) ;
7-
8- const compat = new FlatCompat ( { baseDirectory : __dirname } ) ;
1+ import pluginNext from "@next/eslint-plugin-next" ;
92
103export default [
11- ...compat . extends ( "next/core-web-vitals" ) ,
4+ {
5+ plugins : {
6+ "@next/next" : pluginNext ,
7+ } ,
8+ rules : {
9+ ...pluginNext . configs . recommended . rules ,
10+ ...pluginNext . configs [ "core-web-vitals" ] . rules ,
11+ } ,
12+ } ,
1213] ;
Original file line number Diff line number Diff line change 1919 "@types/react-dom" : " ^19.2.3" ,
2020 "@tailwindcss/postcss" : " ^4.2.4" ,
2121 "autoprefixer" : " ^10.5.0" ,
22- "@eslint/eslintrc " : " ^3.3.1 " ,
22+ "@next/eslint-plugin-next " : " ^16.2.4 " ,
2323 "eslint" : " ^10.2.1" ,
2424 "eslint-config-next" : " ^16.2.4" ,
2525 "postcss" : " ^8.5.10" ,
Original file line number Diff line number Diff line change 1- import { dirname } from "path" ;
2- import { fileURLToPath } from "url" ;
3- import { FlatCompat } from "@eslint/eslintrc" ;
4-
5- const __filename = fileURLToPath ( import . meta. url ) ;
6- const __dirname = dirname ( __filename ) ;
7-
8- const compat = new FlatCompat ( { baseDirectory : __dirname } ) ;
1+ import pluginNext from "@next/eslint-plugin-next" ;
92
103export default [
11- ...compat . extends ( "next/core-web-vitals" ) ,
4+ {
5+ plugins : {
6+ "@next/next" : pluginNext ,
7+ } ,
8+ rules : {
9+ ...pluginNext . configs . recommended . rules ,
10+ ...pluginNext . configs [ "core-web-vitals" ] . rules ,
11+ } ,
12+ } ,
1213] ;
Original file line number Diff line number Diff line change 1919 "@types/react-dom" : " ^19.2.3" ,
2020 "@tailwindcss/postcss" : " ^4.2.4" ,
2121 "autoprefixer" : " ^10.5.0" ,
22- "@eslint/eslintrc " : " ^3.3.1 " ,
22+ "@next/eslint-plugin-next " : " ^16.2.4 " ,
2323 "eslint" : " ^10.2.1" ,
2424 "eslint-config-next" : " ^16.2.4" ,
2525 "postcss" : " ^8.5.10" ,
You can’t perform that action at this time.
0 commit comments