Repository navigation
Conversation
Turn on noImplicitThis, noImplicitReturns, noUnusedLocals, noUnusedParameters and strictBindCallApply, and fix the 14 errors they report. writeAlignment now promisifies bound write/end wrappers instead of calling the promisified prototype methods with .call; a new test covers its output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jtklein-agents
deleted the
384-enable-five-cheap-strict-compiler-flags
branch
November 26, 2026 22:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turns on five stricter TypeScript checks and fixes the 14 errors they report. Tracks jtklein-agents#384.
Only one fix changes runtime code:
writeAlignmentinsrc/common/io.ts, which writes the FASTA alignment.The other fixes are type-only:
import Reactlines removed (jsx: react-jsxdoesn't need them).FinalAlignment.taxonsspreads the arrays intounion/intersectioninstead of calling.apply.readalGetFormatreturnsundefinedexplicitly._eventin theTabsonChangehandler.this.Evidence
tsc --noEmitwith the five flags onmaster: 14 errors.After:
yarn typecheck: 0 errors.yarn lintpasses, andyarn testpasses 485 of 485.writeAlignmenthad no test. This PR adds one:Merge Danger
Door: two-way
Reverting the commit undoes it. Nothing is persisted or migrated.
Blast Radius: small
writeAlignmentis the only runtime change, and the new test pins its output. From now on,yarn typecheckfails on unused locals or parameters, so later PRs must keep those clean.🤖 Generated with Claude Code