This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
Closed
Description
What version of ESLint are you using?
5.11.1
What version of TypeScript are you using?
3.1.1
What version of typescript-eslint-parser
are you using?
Any version from 21.0.0 onwards
What code were you trying to parse?
{
"parser": "typescript-eslint-parser",
"rules": {
"func-style": ["error", "declaration"],
"no-implicit-globals": "error"
}
}
function foo() {
return "bar";
}
module.exports = foo;
What did you expect to happen?
No errors
What happened?
In `typescript-eslint-parser@20.1.1, code passes with no errors.
With `typescript-eslint-parser@21.0.0 onwards, the errors below occur:
1:1 error Implicit global variable, assign as global property instead no-implicit-globals
Activity