Chris Tate 5 hónapja
szülő
commit
005b27eccc

+ 4 - 0
examples/dashboard/eslint.config.js

@@ -0,0 +1,4 @@
+import { nextJsConfig } from "@repo/eslint-config/next-js";
+
+/** @type {import("eslint").Linter.Config[]} */
+export default nextJsConfig;

+ 1 - 1
examples/dashboard/next-env.d.ts

@@ -1,6 +1,6 @@
 /// <reference types="next" />
 /// <reference types="next/image-types/global" />
-import "./.next/types/routes.d.ts";
+import "./.next/dev/types/routes.d.ts";
 
 // NOTE: This file should not be edited
 // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

+ 1 - 1
examples/dashboard/next.config.js

@@ -3,4 +3,4 @@ const nextConfig = {
   transpilePackages: ['@json-render/core', '@json-render/react'],
 };
 
-module.exports = nextConfig;
+export default nextConfig;

+ 4 - 1
examples/dashboard/package.json

@@ -1,12 +1,13 @@
 {
   "name": "example-dashboard",
   "version": "0.1.0",
+  "type": "module",
   "private": true,
   "scripts": {
     "dev": "next dev --turbopack --port 3001",
     "build": "next build",
     "start": "next start",
-    "lint": "next lint"
+    "lint": "eslint --max-warnings 0"
   },
   "dependencies": {
     "@ai-sdk/gateway": "^3.0.13",
@@ -19,9 +20,11 @@
     "zod": "^3.24.0"
   },
   "devDependencies": {
+    "@repo/eslint-config": "workspace:*",
     "@types/node": "^22.10.0",
     "@types/react": "19.2.3",
     "@types/react-dom": "19.2.3",
+    "eslint": "^9.39.1",
     "typescript": "^5.7.2"
   }
 }

+ 6 - 0
pnpm-lock.yaml

@@ -142,6 +142,9 @@ importers:
         specifier: ^3.24.0
         version: 3.25.76
     devDependencies:
+      '@repo/eslint-config':
+        specifier: workspace:*
+        version: link:../../packages/eslint-config
       '@types/node':
         specifier: ^22.10.0
         version: 22.19.6
@@ -151,6 +154,9 @@ importers:
       '@types/react-dom':
         specifier: 19.2.3
         version: 19.2.3(@types/react@19.2.3)
+      eslint:
+        specifier: ^9.39.1
+        version: 9.39.2(jiti@2.6.1)
       typescript:
         specifier: ^5.7.2
         version: 5.9.2