Skip to content

Conversation

manerlan
Copy link
Member

Closes #76.

npm run lint failed on main, so npm run check failed for every branch.

What

1. fix(auth): separate refs in AuthForm.tsx
ESLint's react-hooks/refs rule (React Compiler) rejected reading inputs.password while rendering. The refs were kept in an object, inputs = { username, password }, from #65. They are now two plain refs, usernameInput and passwordInput, passed straight to ref. Focus still moves to the first field with an error.

2. chore(lint): ignore generated folders
ESLint and Prettier checked the files that the tests generate, and ESLint warned about files in coverage/ after npm run test:coverage. eslint.config.js and .prettierignore now skip coverage, test-results, playwright-report and blob-report, the same folders as .gitignore.

How it was tested

  • npm run lint: 0 problems
  • npx vitest run src/features/auth: all pass, including the focus tests in AuthForm.test.tsx
  • [ x] npm run check

Prettier still fails on Windows because Git turns LF into CRLF in the working copy. That is not from this PR, and it is fixed in issue #78 with .gitattributes.

@manerlan manerlan requested a review from a team as a code owner November 17, 2026 19:13
@manerlan manerlan linked an issue Nov 17, 2026 that may be closed by this pull request
Copy link
Member

@williasc williasc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. This was blocking npm run check. Merging

@williasc williasc merged commit 1c0d6cf into main Nov 17, 2026
@williasc williasc deleted the 76-small-lint-issue branch November 17, 2026 20:41
@manerlan manerlan mentioned this pull request Nov 17, 2026
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Small lint issue
2 participants