Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Prettier formatting + content-link validation. Fast, no node_modules
# needed beyond what setup-node cache restores.
# (Renamed from "lint" — the job never actually ran a linter; ESLint now
# lives in its own advisory job below.)
# lives in its own blocking job below.)
format:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -55,13 +55,11 @@ jobs:
- name: Validate sitemap, footer, and blog links
run: pnpm validate-links

# Advisory ESLint pass. Allowed to fail without blocking merge while the
# codebase is brought up to baseline. Not in ci-success.needs so a red
# eslint job doesn't gate the PR. Promote to blocking once errors are at
# zero (or after team decides a warn floor).
# Blocking ESLint pass (DS 10, TASK-21450). Errors reached zero on
# feat/design-system, so this gates the PR via ci-success.needs. Warnings
# do not fail the job; add a warn floor only if the team decides one.
eslint:
runs-on: ubuntu-latest
Comment thread
coderabbitai[bot] marked this conversation as resolved.
continue-on-error: true
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -384,7 +382,7 @@ jobs:
ci-success:
name: ci-success
if: always()
needs: [format, typecheck, unit, e2e, report]
needs: [format, eslint, typecheck, unit, e2e, report]
runs-on: ubuntu-latest
steps:
- name: Verify all required jobs passed
Expand All @@ -393,6 +391,7 @@ jobs:
echo "::error::One or more required jobs failed or were cancelled"
echo "Job results:"
echo " format: ${{ needs.format.result }}"
echo " eslint: ${{ needs.eslint.result }}"
echo " typecheck: ${{ needs.typecheck.result }}"
echo " unit: ${{ needs.unit.result }}"
echo " e2e: ${{ needs.e2e.result }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Strategy: mock every hook and service at the module level, then configure
* per-test via mockReturnValue / mockImplementation.
*/
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars, react/display-name */
/* eslint-disable @typescript-eslint/no-unused-vars, react/display-name */
import React from 'react'
import { render, screen, fireEvent, waitFor, act } from '@testing-library/react'
import { IntlWrapper } from '@/test-utils/intl'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* the destination is under test here — everything else is stubbed to the thinnest
* thing that lets the showQR step render.
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
import React from 'react'
import { render, screen, fireEvent, waitFor } from '@testing-library/react'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any -- jest.mock factories stub component props with `any`; matches the sibling add-money-states.test.tsx style. */
/**
* Regression coverage for the deposit/withdraw method list's bank gate.
*
Expand Down
1 change: 0 additions & 1 deletion src/components/Card/__tests__/PhysicalCardScreen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jest.mock('@/context/authContext', () => ({
}))
jest.mock('next/image', () => ({
__esModule: true,
// eslint-disable-next-line @next/next/no-img-element -- test stub, not real markup
default: (props: Record<string, unknown>) => <img alt={String(props.alt ?? '')} />,
}))
jest.mock('posthog-js', () => ({ __esModule: true, default: { capture: jest.fn() } }))
Expand Down
1 change: 0 additions & 1 deletion src/components/Global/InvitesGraph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,6 @@ export default function InvitesGraph(props: InvitesGraphProps) {
// configureForces is async - must wait for it to complete before reheating
configureForces().then(() => {
if (!graphRef.current) return
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const internalGraph = graphRef.current as any
if (internalGraph._simulation) {
internalGraph._simulation.alpha(1).restart()
Expand Down
1 change: 0 additions & 1 deletion src/i18n/app/__tests__/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ describe('ICU message compilation', () => {
minutes: 2,
}
for (const path of leafPaths(messages)) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
t(path as any, dummy)
}
expect(invalid).toEqual([])
Expand Down
Loading