Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return no-unused-expressions linting in typescript files #461

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Feb 2, 2025

Description

Add @typescript-eslint/no-unused-expressions to typescript config.

In v46:

  • in the core js config we enabled no-unused-expressions
  • in the esnext config we overrode that - disabling no-unused-expressions and enabling@babel/no-unused-expressions.
  • in typescript files we disabled no-unused-expressions to off but left @babel/no-unused-expressions enabled - which seems like an oversight given that @typescript-eslint/no-unused-expressions existed.

In v47.0.0 we removed configuration of @babel/no-unused-expressions entirely, which meant that there was no linting of unused-expressions in typescript files. This change brings back unused expression linting to typescript files.

@BPScott BPScott merged commit b1b449c into main Feb 2, 2025
4 checks passed
@BPScott BPScott deleted the add-nounsed branch February 2, 2025 00:59
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