Skip to content

fix(percy): use const for session state in percy-session#276

Merged
gaurav-singh-9227 merged 1 commit intobrowserstack:percyfrom
DeRaowl:fix/percy-session-const-lint
Apr 17, 2026
Merged

fix(percy): use const for session state in percy-session#276
gaurav-singh-9227 merged 1 commit intobrowserstack:percyfrom
DeRaowl:fix/percy-session-const-lint

Conversation

@DeRaowl
Copy link
Copy Markdown

@DeRaowl DeRaowl commented Apr 17, 2026

Summary

  • Resolves prefer-const ESLint failure on CI for src/lib/percy-api/percy-session.ts
  • The session object is never reassigned — only its properties are mutated — so const is correct
  • npm run format also collapsed a few short if statements onto single lines

Test plan

  • npm run build passes locally (lint + format + 176 tests + tsc)
  • CI green on percy

🤖 Generated with Claude Code

Resolves prefer-const lint failure on CI. The `session` object is never
reassigned — only its properties are mutated — so `const` is correct.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gaurav-singh-9227 gaurav-singh-9227 merged commit 6fd2c2e into browserstack:percy Apr 17, 2026
1 check passed
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.

3 participants