[object Object]

← back to Govarbitrage

Phase 4b: ESLint 9 flat config (Next 16 native) — lint passes 0 errors

cd720878469fa64bec39f9c18f62ab227f5ccb90 · 2026-07-09 22:39:50 -0700 · Steve Abrams

Files touched

Diff

commit cd720878469fa64bec39f9c18f62ab227f5ccb90
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Jul 9 22:39:50 2026 -0700

    Phase 4b: ESLint 9 flat config (Next 16 native) — lint passes 0 errors
---
 eslint.config.mjs | 25 ++++---------------------
 package-lock.json |  1 +
 package.json      |  3 ++-
 3 files changed, 7 insertions(+), 22 deletions(-)

diff --git a/eslint.config.mjs b/eslint.config.mjs
index dac3578..0549540 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -1,28 +1,11 @@
-import { dirname } from "node:path";
-import { fileURLToPath } from "node:url";
-import { FlatCompat } from "@eslint/eslintrc";
-
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = dirname(__filename);
-
-const compat = new FlatCompat({ baseDirectory: __dirname });
+import next from "eslint-config-next";
 
+/** Flat ESLint config for Next.js 16 (native flat export). */
 const eslintConfig = [
-  ...compat.extends("next/core-web-vitals", "next/typescript"),
-  {
-    ignores: [
-      "node_modules/**",
-      ".next/**",
-      "extension/**",
-      "prisma/seed.ts",
-    ],
-  },
   {
-    rules: {
-      "@typescript-eslint/no-explicit-any": "warn",
-      "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
-    },
+    ignores: ["node_modules/**", ".next/**", "extension/**", "prisma/seed.ts"],
   },
+  ...next,
 ];
 
 export default eslintConfig;
diff --git a/package-lock.json b/package-lock.json
index 22943f3..db9c096 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -21,6 +21,7 @@
         "zod": "^3.24.1"
       },
       "devDependencies": {
+        "@eslint/eslintrc": "^3.3.5",
         "@playwright/test": "^1.49.1",
         "@tailwindcss/postcss": "^4.0.0",
         "@types/node": "^22.10.5",
diff --git a/package.json b/package.json
index 7ba48d9..d183baa 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
     "dev": "next dev",
     "build": "prisma generate && next build",
     "start": "next start",
-    "lint": "next lint",
+    "lint": "eslint .",
     "typecheck": "tsc --noEmit",
     "test": "vitest run",
     "test:watch": "vitest",
@@ -40,6 +40,7 @@
     "ioredis": "^5.4.2"
   },
   "devDependencies": {
+    "@eslint/eslintrc": "^3.3.5",
     "@playwright/test": "^1.49.1",
     "@tailwindcss/postcss": "^4.0.0",
     "@types/node": "^22.10.5",

← 270f059 Phase 4: dashboard (cards + full-column TanStack table + CSV  ·  back to Govarbitrage  ·  auto-save: 2026-07-09T22:42:31 (5 files) — README.md extensi 1934684 →