Bug: [prefer-optional-chain] Crashes when parsing an import.meta
member with both the ||
and !
operators
#6000
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.8.4&sourceType=module&code=JYMwBAFAhMC2AOB7ATgFwHSwKaoIboFdkAbMAHzLFWQKwEowBjRAOwGdFit1jEBzCACIAElmK9BdANxA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Y6RAM0WloHsalfkwCG8WmQAWo5uigB3UdCaRwYAL4gNQA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
tsconfig
Expected Result
I expected ESLint to be all OK.
Actual Result
The parser crashes:
Additional Info
No response
Versions
@typescript-eslint/eslint-plugin
5.43.0
@typescript-eslint/parser
5.43.0
TypeScript
4.8.4
ESLint
8.27.0
node
18.11
The text was updated successfully, but these errors were encountered: