Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as not planned
Closed as not planned
Labels
bugSomething isn't workingexternalThis issue is with another package, not typescript-eslint itselflocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginwontfixThis will not be worked onworking as intendedIssues that are closed as they are working as intended
Description
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 havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
Repro Code
functionFn(){if(new.target){}}
ESLint Config
{"rules":{"@typescript-eslint/no-unnecessary-condition":"error"}}
tsconfig
{"compilerOptions": {"strictNullChecks":true }}
Expected Result
No error.
Actual Result
Errors.
Additional Info
Additional info:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingexternalThis issue is with another package, not typescript-eslint itselflocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginwontfixThis will not be worked onworking as intendedIssues that are closed as they are working as intended