Problem
npx eslint src/features/auth reports 2 errors on master, so the auth feature can't be held to a clean lint gate:
src/features/auth/MFAEnrollmentBanner.tsx:61: react-refresh/only-export-components. The file exports a non-component next to the component, which breaks Fast Refresh for it.
src/features/auth/MFAPostAhaPrompt.tsx:64: react-hooks/set-state-in-effect. setState is called synchronously inside an effect, which causes an extra render cascade.
Found while verifying #688; neither file was touched there.
Acceptance criteria
npx eslint src/features/auth reports 0 problems.
- No rule is disabled or suppressed with a comment. The code is changed.
- Behaviour is unchanged: the existing tests for both components still pass unmodified (
mfaEnrollmentBanner*.test.tsx, mfaPostAhaPrompt.test.tsx).
- Any non-component export moves to its own module and every import is updated.
Definition of Done
Problem
npx eslint src/features/authreports 2 errors on master, so the auth feature can't be held to a clean lint gate:src/features/auth/MFAEnrollmentBanner.tsx:61:react-refresh/only-export-components. The file exports a non-component next to the component, which breaks Fast Refresh for it.src/features/auth/MFAPostAhaPrompt.tsx:64:react-hooks/set-state-in-effect.setStateis called synchronously inside an effect, which causes an extra render cascade.Found while verifying #688; neither file was touched there.
Acceptance criteria
npx eslint src/features/authreports 0 problems.mfaEnrollmentBanner*.test.tsx,mfaPostAhaPrompt.test.tsx).Definition of Done
npx tsc -b --noEmit,npx eslint src/features/auth,npx vitest run,npm run buildgreen, output pasted.Closes.