This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
no-restricted-globals: false positive on class property #487
Closed
Description
What version of TypeScript are you using?
2.9.1
What version of typescript-eslint-parser
are you using?
16.0.0
What code were you trying to parse?
With no-restricted-globals
rule enabled ("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