Jelajahi Sumber

fix: resolve npm run lint command issue

- Replace next lint with direct eslint command in package.json
- Fixes 'Invalid project directory' error with Next.js lint command
Fszontagh 3 bulan lalu
induk
melakukan
10cb94566d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      webui/package.json

+ 1 - 1
webui/package.json

@@ -8,7 +8,7 @@
     "build-static": "next build && npm run copy-to-build",
     "copy-to-build": "cp -r out/* ../../build/webui/",
     "start": "next start",
-    "lint": "next lint"
+    "lint": "eslint . --ext .ts,.tsx,.js,.jsx"
   },
   "dependencies": {
     "@radix-ui/react-select": "^2.2.6",