Feature request: [no-shadow] It would really help, if the error message would show where the original identifier has been defined #2458
Labels
awaiting response
Issues waiting for a reply from the OP or another party
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
In my experience, the
no-shadow
rule could greatly benefit from an error message that also describes where the identifier has already been defined and not only where the redefinition has occurred.Instead of the current error:
4:8 error 'a' is already declared in the upper scope @typescript-eslint/no-shadow
the following would be most helpful:
4:8 error 'a' is already declared in the upper scope (1:7) @typescript-eslint/no-shadow
Versions
@typescript-eslint/eslint-plugin
4.0.1
@typescript-eslint/parser
4.0.1
TypeScript
4.0.2
ESLint
7.8.0
node
14.8.0
The text was updated successfully, but these errors were encountered: