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

Commit 75cbb3d

Browse files
committed
Addressed next js Lint
1 parent 7851e5c commit 75cbb3d

4 files changed

Lines changed: 28 additions & 2 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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 });
9+
10+
export default [
11+
...compat.extends("next/core-web-vitals"),
12+
];

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev -p 3000",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint ."
9+
"lint": "eslint ."
1010
},
1111
"dependencies": {
1212
"next": "^16.2.4",
@@ -19,6 +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",
2223
"eslint": "^10.2.1",
2324
"eslint-config-next": "^16.2.4",
2425
"postcss": "^8.5.10",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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 });
9+
10+
export default [
11+
...compat.extends("next/core-web-vitals"),
12+
];

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev -p 3000",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint ."
9+
"lint": "eslint ."
1010
},
1111
"dependencies": {
1212
"next": "^16.2.4",
@@ -19,6 +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",
2223
"eslint": "^10.2.1",
2324
"eslint-config-next": "^16.2.4",
2425
"postcss": "^8.5.10",

0 commit comments

Comments
 (0)