[no-unsafe-member-access] location of warning is swamping other warnings #2164
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement
New feature or request
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Expected Result
Two separate warnings
Actual Result
By appearances, a single error, with the true error hidden within
Additional Info
The plugin could probably do with a 'loc' property to be returned to define exactly where to show the warning/error. In some paths, the code finds the name of the offending method (subscribe) in this example. It might be a case of finding that string within the source and returning that as the loc property.
Versions
@typescript-eslint/eslint-plugin
3.0.2
@typescript-eslint/parser
3.0.2
TypeScript
3.8.3
ESLint
7.1.0
node
12.16.3
npm
6.14.4
The text was updated successfully, but these errors were encountered: