Skip to content

Bug: '@typescript-eslint/no-unused-expressions': Cannot read properties of undefined (reading 'allowShortCircuit') #10353

@awesomepandapig

Description

@awesomepandapig

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

Same issue as: #10338, with Canary release

Eslint crashes when running on an empty .tsx file:

npm run lint

> web@0.1.0 lint
> next lint

Error while loading rule '@typescript-eslint/no-unused-expressions': Cannot read properties of undefined (reading 'allowShortCircuit')

Reproduction Repository Link

https://github.com/awesomepandapig/tslint-bug

Repro Steps

  1. clone the repo
  2. follow steps in readme

Versions

package version
@typescript-eslint/parser 8.14.1-alpha-6
TypeScript 5.6.3
ESLint 9.15.0
node 22.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfix: user errorissue was fixed by correcting the configuration / correcting the codelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.triageWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions