[dot-notation] False positive with optional chaining and allowIndexSignaturePropertyAccess: true
#3510
Closed
3 tasks done
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
The test TS code does not contain any ESLint errors.
Actual Result
The last line of the test TS code,
dingus?.nested['hello'];
, has this ESLint error:Additional Info
This GitHub repo contains this same test code and configs: https://github.com/kohlmannj/typescript-eslint-dot-notation-index-access-optional-chaining-bug
This is a reproduction of the issue that @eugene-stativka noted here: #3361 (comment)
Relates to:
Output from
eslint --ext ".ts" src --debug
Note: You can rerun this command in https://github.com/kohlmannj/typescript-eslint-dot-notation-index-access-optional-chaining-bug with the
yarn lint:debug
script.Versions
@typescript-eslint/eslint-plugin
4.26.1
@typescript-eslint/parser
4.26.1
TypeScript
4.3.2
ESLint
7.28.0
node
14.5.0
The text was updated successfully, but these errors were encountered: