Closed burnnat closed 5 years ago
What version of TypeScript are you using? 2.9.1
What version of typescript-eslint-parser are you using? 16.0.0
typescript-eslint-parser
What code were you trying to parse? With no-restricted-globals rule enabled ("no-restricted-globals": [2, "status"]):
no-restricted-globals
"no-restricted-globals": [2, "status"]
export default class Test { private status: string; getStatus() { return this.status; } }
What did you expect to happen? Lint completes without error.
What happened? False positive for no-restricted-globals:
2:10 error Unexpected use of 'status' no-restricted-globals
It appears this is also an issue with interface properties:
interface Test { status: string; }
seems to be a duplicate of #414
What version of TypeScript are you using? 2.9.1
What version of
typescript-eslint-parser
are you using? 16.0.0What code were you trying to parse? With
no-restricted-globals
rule enabled ("no-restricted-globals": [2, "status"]
):What did you expect to happen? Lint completes without error.
What happened? False positive for
no-restricted-globals
: