Skip to content

Commit bb69b9c

Browse files
fix linting
1 parent ed55607 commit bb69b9c

File tree

8 files changed

+345
-357
lines changed

8 files changed

+345
-357
lines changed

packages/web/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# shadcn components
22
src/components/
3+
next-env.d.ts

packages/web/next.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const nextConfig = {
3838
},
3939
]
4040
},
41+
42+
turbopack: {}
4143
};
4244

4345
export default withSentryConfig(nextConfig, {

packages/web/package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev --turbopack",
77
"build": "cross-env SKIP_ENV_VALIDATION=1 next build",
88
"start": "next start",
9-
"lint": "cross-env SKIP_ENV_VALIDATION=1 next lint",
9+
"lint": "cross-env SKIP_ENV_VALIDATION=1 eslint .",
1010
"test": "vitest",
1111
"dev:emails": "email dev --dir ./src/emails",
1212
"stripe:listen": "stripe listen --forward-to http://localhost:3000/api/stripe"
@@ -187,21 +187,23 @@
187187
"zod-to-json-schema": "^3.24.5"
188188
},
189189
"devDependencies": {
190+
"@eslint/eslintrc": "^3",
190191
"@tanstack/eslint-plugin-query": "^5.74.7",
191-
"@testing-library/react-hooks": "^8.0.1",
192+
"@testing-library/dom": "^10.4.1",
193+
"@testing-library/react": "^16.3.0",
192194
"@types/micromatch": "^4.0.9",
193195
"@types/node": "^20",
194196
"@types/nodemailer": "^6.4.17",
195197
"@types/psl": "^1.1.3",
196198
"@types/react": "19.1.10",
197199
"@types/react-dom": "19.1.7",
198-
"@typescript-eslint/eslint-plugin": "^8.3.0",
199-
"@typescript-eslint/parser": "^8.3.0",
200+
"@typescript-eslint/eslint-plugin": "^8.40.0",
201+
"@typescript-eslint/parser": "^8.40.0",
200202
"cross-env": "^7.0.3",
201203
"eslint": "^8",
202204
"eslint-config-next": "15.5.0",
203-
"eslint-plugin-react": "^7.35.0",
204-
"eslint-plugin-react-hooks": "^4.6.2",
205+
"eslint-plugin-react": "^7.37.5",
206+
"eslint-plugin-react-hooks": "^5.2.0",
205207
"jsdom": "^25.0.1",
206208
"npm-run-all": "^4.1.5",
207209
"postcss": "^8",

packages/web/src/app/onboard/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type React from "react"
2+
import Link from "next/link"
23

34
import { Card, CardContent } from "@/components/ui/card"
45
import { Button } from "@/components/ui/button"
@@ -119,7 +120,7 @@ export default async function Onboarding(props: OnboardingProps) {
119120
component: (
120121
<div className="space-y-6">
121122
<Button asChild className="w-full">
122-
<a href="/onboard?step=1">Get Started →</a>
123+
<Link href="/onboard?step=1">Get Started →</Link>
123124
</Button>
124125
</div>
125126
),
@@ -171,7 +172,7 @@ export default async function Onboarding(props: OnboardingProps) {
171172
<div className="space-y-6">
172173
<OrganizationAccessSettings />
173174
<Button asChild className="w-full">
174-
<a href="/onboard?step=3">Continue →</a>
175+
<Link href="/onboard?step=3">Continue →</Link>
175176
</Button>
176177
</div>
177178
),

packages/web/src/features/chat/useExtractReferences.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from 'vitest'
2-
import { renderHook } from '@testing-library/react-hooks';
2+
import { renderHook } from '@testing-library/react';
33
import { useExtractReferences } from './useExtractReferences';
44
import { getFileReferenceId } from './utils';
55
import { TextUIPart } from 'ai';

packages/web/src/features/chat/useMessagePairs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, test } from 'vitest'
22
import { SBChatMessage } from './types';
33
import { useMessagePairs } from './useMessagePairs';
4-
import { renderHook } from '@testing-library/react-hooks';
4+
import { renderHook } from '@testing-library/react';
55

66
test('useMessagePairs pairs user and assistant messages', () => {
77
const userMessage: SBChatMessage = {

0 commit comments

Comments
 (0)