Skip to content

chore(test): fix no-unused-vars lint errors in types.test.ts#699

Merged
arturasmckwcz merged 1 commit into
developfrom
chore-fix-test-lint-errors
Jun 19, 2026
Merged

chore(test): fix no-unused-vars lint errors in types.test.ts#699
arturasmckwcz merged 1 commit into
developfrom
chore-fix-test-lint-errors

Conversation

@arturasmckwcz

Copy link
Copy Markdown
Collaborator

Summary

  • Fix the 7 @typescript-eslint/no-unused-vars errors in src/test/server/utils/types.test.ts — the only lint errors in the test suite.
  • These are compile-time type tests: each const exists only to trip its @ts-expect-error directive, so it's never read. Renamed with the _ prefix that the no-unused-vars rule is configured to allow (Allowed unused vars must match /^_/u). The @ts-expect-error assertions still fire, so the tests remain meaningful.
  • Applied Prettier (import ordering, trailing newline).
  • Side effect: CLAUDE.md now references the tracked .claude/shared-rules.md.

Verification

  • npx eslint 'src/test/**/*.ts' → 0 errors
  • yarn typecheck → clean (@ts-expect-error directives still valid)

🤖 Generated with Claude Code

The compile-time type tests declare consts solely to trip their
@ts-expect-error directives, so they are never read. Prefix them with `_`
(the escape hatch the no-unused-vars rule is configured to allow) and apply
Prettier formatting.

Side effect: reference the shared .claude/shared-rules.md from CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@arturasmckwcz arturasmckwcz merged commit b452ccb into develop Jun 19, 2026
@arturasmckwcz arturasmckwcz deleted the chore-fix-test-lint-errors branch June 19, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants