-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
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 have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
document.querySelector("input")!.files = new FileList();
ESLint Config
{
"rules": {
"@typescript-eslint/no-non-null-assertion": "error"
}
}a
tsconfig
Expected Result
When using @typescript-eslint/no-non-null-assertion
, flagging this code is correct. But the suggested code fix is incorrect. If you apply the fix, you'll get a compiler error from tsc:
2779: The left-hand side of an assignment expression may not be an optional property access. 1:1 - 1:39
Actual Result
Error, but no suggestion.
Additional Info
No response
kirkwaiblinger
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin