Skip to content

Clean up eslint findings and enforce lint on PRs - #60

Merged
aurpelai merged 4 commits into
mainfrom
fix/eslint-cleanup
Jun 15, 2026
Merged

aurpelai merged 4 commits into
mainfrom
fix/eslint-cleanup

Conversation

@aurpelai

@aurpelai aurpelai commented Jun 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Replace dev-only console.warn for atlas overflow with a user-visible error toast (fix: — behaviour change)
  • Extract duplicated pixel input from PaddingFields and SpacingFields into a shared PixelInput
  • Narrow Slider onValueChange via typeof === 'number' so TS keeps the union narrowed (Array.isArray widens to any[])
  • Add the blank lines padding-line-between-statements requires in main.tsx
  • Add a CI workflow that runs pnpm lint on every pull request to main; the lint check is now required by the "Protect main" ruleset, blocking merges on lint errors

Test plan

  • pnpm lint is clean
  • pnpm build succeeds
  • Pack an atlas larger than will fit and confirm the new overflow toast appears
  • Move the alpha-threshold sliders in the toolbar and the per-glyph panel and confirm values update
  • CI lint job runs on this PR and passes

aurpelai added 4 commits June 15, 2026 19:24
Replace the dev-only console.warn with an error toast so users
actually see when glyphs did not fit in the atlas.
PaddingFields and SpacingFields each declared an identical pixel
input component. Consolidate into a single PixelInput module.
Narrow Slider onValueChange via typeof instead of Array.isArray so
TS keeps the union narrowed (Array.isArray widens to any[]), and add
the blank lines required by padding-line-between-statements in main.
Adds a lint job that runs on pull_request to main. ESLint exits
non-zero on any error, failing the check so the PR cannot be merged
once the new check is marked required in the branch ruleset.
@aurpelai aurpelai changed the title Clear remaining eslint errors and warnings Clean up eslint findings and enforce lint on PRs Jun 15, 2026
@aurpelai
aurpelai merged commit 1759cac into main Jun 15, 2026
1 check passed
@aurpelai
aurpelai deleted the fix/eslint-cleanup branch June 15, 2026 16:30
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.

1 participant