Skip to content
This repository was archived by the owner on Aug 10, 2026. It is now read-only.

Commit d9889f1

Browse files
committed
Fixed another link issue
1 parent 75cbb3d commit d9889f1

4 files changed

Lines changed: 22 additions & 20 deletions

File tree

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
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

103
export 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
];

‎projects/03-url-bookmark-saver/frontend/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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",
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
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

103
export 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
];

‎projects/04-architecture-diagram/frontend/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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",

0 commit comments

Comments
 (0)