Skip to content

Commit b978b02

Browse files
committed
feat: Add ESLint configuration, lint script, and related development dependencies.
1 parent 163cd60 commit b978b02

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

eslint.config.mjs

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

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"start": "next start"
8+
"start": "next start",
9+
"lint": "eslint ."
910
},
1011
"dependencies": {
1112
"@react-three/drei": "^10.7.6",
@@ -19,11 +20,14 @@
1920
"zustand": "^5.0.8"
2021
},
2122
"devDependencies": {
23+
"@eslint/eslintrc": "^3",
2224
"@tailwindcss/postcss": "^4",
2325
"@types/node": "^20",
2426
"@types/react": "^19",
2527
"@types/react-dom": "^19",
28+
"eslint": "^9",
29+
"eslint-config-next": "15.1.0",
2630
"tailwindcss": "^4",
2731
"typescript": "^5"
2832
}
29-
}
33+
}

0 commit comments

Comments
 (0)