File tree Expand file tree Collapse file tree
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 ( {
9+ baseDirectory : __dirname ,
10+ } ) ;
11+
12+ const eslintConfig = [
13+ ...compat . extends ( "next/core-web-vitals" , "next/typescript" ) ,
14+ ] ;
15+
16+ export default eslintConfig ;
Original file line number Diff line number Diff line change 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" ,
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+ }
You can’t perform that action at this time.
0 commit comments