Skip to content

Disable TypeScript noUnusedLocals and noUnusedParameters options, already covered by eslint#3464

Merged
mbg merged 1 commit intomainfrom
mbg/disable-ts-unused-checks
Feb 6, 2026
Merged

Disable TypeScript noUnusedLocals and noUnusedParameters options, already covered by eslint#3464
mbg merged 1 commit intomainfrom
mbg/disable-ts-unused-checks

Conversation

@mbg
Copy link
Member

@mbg mbg commented Feb 6, 2026

Probably a controversial change, but:

  • We already use eslint, which has the same rules configured.
  • eslint allows the equivalent errors to be suppressed with comments. TypeScript allows unused parameter errors to be suppressed with a leading _ in the name, but there is no way to suppress unused locals.
  • While working on changes, it is annoying to get errors for this when testing partially complete code. Meanwhile eslint can be run on demand when it makes sense.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Which use cases does this change impact?

  • Testing/None - This change does not impact any CodeQL workflows in production.

How did/will you validate this change?

  • None - I am not validating these changes.

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Rollback - Change can only be disabled by rolling back the release or releasing a new version with a fix.

How will you know if something goes wrong after this change is released?

N/A

Are there any special considerations for merging or releasing this change?

  • No special considerations - This change can be merged at any time.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

@mbg mbg self-assigned this Feb 6, 2026
@mbg mbg requested a review from a team as a code owner February 6, 2026 00:22
Copilot AI review requested due to automatic review settings February 6, 2026 00:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@github-actions github-actions bot added the size/XS Should be very easy to review label Feb 6, 2026
@mbg mbg changed the title Disable noUnusedLocals and noUnusedParameters Disable TypeScript noUnusedLocals and noUnusedParameters options, already covered by eslint Feb 6, 2026
@mbg mbg merged commit 9b3a0d2 into main Feb 6, 2026
251 checks passed
@mbg mbg deleted the mbg/disable-ts-unused-checks branch February 6, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Should be very easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants