Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix

Bingxi Zhaob607568633f0
diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml
index 6101e4e0d..3f4aa04a7 100644
--- a/.github/workflows/linting.yaml
+++ b/.github/workflows/linting.yaml
@@ -90,8 +90,8 @@ jobs:
working-directory: ./web
run: |
echo "πŸ” Running ESLint on frontend code..."
- # Use npx next lint with explicit directory to avoid path issues
- npx next lint --dir . 2>&1 || {
+ # Run ESLint directly (Next.js 16 removed the 'next lint' command)
+ npm run lint 2>&1 || {
echo ""
echo "╔═══════════════════════════════════════════════════════════════════════════╗"
echo "β•‘ ❌ ESLint checks failed! β•‘"
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
new file mode 100644
index 000000000..5f40a073a
--- /dev/null
+++ b/web/eslint.config.mjs
@@ -0,0 +1,11 @@
+import nextConfig from "eslint-config-next";
+
+const config = [
+ ...nextConfig,
+ {
+ ignores: ["node_modules/**", ".next/**", "out/**"],
+ },
+];
+
+export default config;
+
diff --git a/web/package.json b/web/package.json
index 2b58ab8b6..d93d1368a 100644
--- a/web/package.json
+++ b/web/package.json
@@ -6,7 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
- "lint": "next lint",
+ "lint": "eslint .",
"audit": "playwright test --project=ui-audit",
"audit:ui": "playwright test --ui --project=ui-audit",
"audit:report": "playwright show-report"