Skip to content

Commit aa497d3

Browse files
committed
lint: fix issues
1 parent 4a76b64 commit aa497d3

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

examples/nextjs/app/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Button } from "@workspace/ui/components/button"
21
import Link from "next/link"
32

43
export default function Page() {

examples/nextjs/lib/query-client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { QueryClient, isServer } from "@tanstack/react-query"
2-
import { cache } from "react"
32

43
function makeQueryClient() {
54
return new QueryClient({
@@ -13,7 +12,7 @@ function makeQueryClient() {
1312
dehydrate: {
1413
// Include both successful and error states to avoid refetching on the client
1514
// This prevents loading states when there's an error in prefetched data
16-
shouldDehydrateQuery: (query) => {
15+
shouldDehydrateQuery: () => {
1716
return true
1817
}
1918
}

examples/nextjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"build": "next build",
99
"start": "next start",
1010
"start:e2e": "rm -rf .next && rm -rf node_modules && pnpm install && pnpm build && NODE_ENV=test next start",
11-
"lint": "next lint",
12-
"lint:fix": "next lint --fix",
11+
"lint": "eslint . --max-warnings 0",
12+
"lint:fix": "eslint . --fix",
1313
"typecheck": "tsc --noEmit"
1414
},
1515
"dependencies": {

packages/eslint-config/base.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const config = [
2929
{
3030
ignores: [
3131
"dist/**",
32+
".next/**",
3233
"**/__tests__/**",
3334
"**/*.test.ts",
3435
"**/*.test.tsx",

turbo.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"build": {
66
"dependsOn": ["^build"],
77
"inputs": ["$TURBO_DEFAULT$", ".env*"],
8-
"outputs": [".next/**", "!.next/cache/**"]
8+
"outputs": [".next/**", "!.next/cache/**"],
9+
"env": ["BASE_URL", "NEXT_PUBLIC_BASE_URL"]
910
},
1011
"lint": {
11-
"dependsOn": ["^lint"]
12+
"dependsOn": ["^lint"],
13+
"env": ["BASE_URL", "NEXT_PUBLIC_BASE_URL"]
1214
},
1315
"typecheck": {
1416
"outputs": [".tsbuildinfo", "dist/**"],
@@ -29,7 +31,8 @@
2931
},
3032
"dev": {
3133
"cache": false,
32-
"persistent": true
34+
"persistent": true,
35+
"env": ["BASE_URL", "NEXT_PUBLIC_BASE_URL"]
3336
}
3437
}
3538
}

0 commit comments

Comments
 (0)