Skip to content

Commit 8d000cb

Browse files
committed
fix: ci workflow
1 parent ebd09cd commit 8d000cb

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/frontend-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: npm ci --legacy-peer-deps
5252

5353
- name: Run linting
54-
run: npm run lint
54+
run: npm run lint:ci
5555

5656
- name: Build Next.js application
5757
run: npm run build
@@ -106,6 +106,9 @@ jobs:
106106
- name: Install dependencies
107107
run: npm ci --legacy-peer-deps
108108

109+
- name: Run linting
110+
run: npm run lint:ci
111+
109112
- name: Build for preview
110113
run: npm run build
111114
env:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10+
"lint:ci": "next lint --max-warnings 999",
1011
"test": "jest",
1112
"test:watch": "jest --watch",
1213
"test:coverage": "jest --coverage",

src/hooks/use-search-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function useSearchResultsCache(options: UseSearchCacheOptions = {}) {
227227
if (!existing) {
228228
try {
229229
const results = await searchFunction(query)
230-
//@ts-ignore
230+
//@ts-expect-error - Complex type inference issue with cacheResults function
231231
cacheResults(query, results, { prewarmed: true })
232232
} catch (error) {
233233
console.warn('Failed to prewarm cache for query:', query, error)

src/utils/search-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export function applyLocationFilter(
398398
const radius = locationFilter.radius || 50
399399
const radiusInKm = locationFilter.radiusUnit === 'miles' ? radius * 1.609 : radius
400400

401-
//@ts-ignore\
401+
//@ts-expect-error - Complex type inference issue with map function
402402
return results
403403
.map(freelancer => {
404404
if (!freelancer.location?.coordinates) {

src/utils/search-performance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class SearchCache {
319319

320320
export class SearchDebouncer {
321321
private timeouts = new Map<string, NodeJS.Timeout>()
322-
private promises = new Map<string, { resolve: Function; reject: Function }>()
322+
private promises = new Map<string, { resolve: (value: any) => void; reject: (reason?: any) => void }>()
323323

324324
debounce<T>(key: string, fn: () => Promise<T>, delay: number): Promise<T> {
325325
const existingTimeout = this.timeouts.get(key)

0 commit comments

Comments
 (0)